td 0.10.46 → 0.10.47
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +2 -2
- data/lib/td/command/account.rb +10 -0
- data/lib/td/command/list.rb +1 -4
- data/lib/td/version.rb +1 -1
- metadata +1 -2
- data/lib/td/command/plan.rb +0 -16
data/ChangeLog
CHANGED
data/lib/td/command/account.rb
CHANGED
@@ -88,6 +88,16 @@ module Command
|
|
88
88
|
$stderr.puts "Use '#{$prog} db:create <db_name>' to create a database."
|
89
89
|
end
|
90
90
|
|
91
|
+
def account_usage(op)
|
92
|
+
op.cmd_parse
|
93
|
+
|
94
|
+
client = get_client
|
95
|
+
|
96
|
+
a = client.account
|
97
|
+
|
98
|
+
$stderr.puts "Storage: #{a.storage_size_string}"
|
99
|
+
end
|
100
|
+
|
91
101
|
end
|
92
102
|
end
|
93
103
|
|
data/lib/td/command/list.rb
CHANGED
@@ -214,8 +214,6 @@ module List
|
|
214
214
|
}
|
215
215
|
end
|
216
216
|
|
217
|
-
add_list 'plan:status', %w[], 'Show status of the account', 'plan:status', 'plan'
|
218
|
-
|
219
217
|
add_list 'db:list', %w[], 'Show list of tables in a database', 'db:list', 'dbs'
|
220
218
|
add_list 'db:show', %w[db], 'Describe information of a database', 'db example_db'
|
221
219
|
add_list 'db:create', %w[db], 'Create a database', 'db:create example_db'
|
@@ -271,6 +269,7 @@ module List
|
|
271
269
|
add_list 'job:kill', %w[job_id], 'Kill or cancel a job', 'job:kill 1461'
|
272
270
|
|
273
271
|
add_list 'account', %w[user_name?], 'Setup a Treasure Data account'
|
272
|
+
add_list 'account:usage', %w[user_name?], 'Show resource usage information'
|
274
273
|
add_list 'password:change', %w[], 'Change password'
|
275
274
|
add_list 'apikey:show', %w[], 'Show Treasure Data API key'
|
276
275
|
add_list 'apikey:set', %w[apikey], 'Set Treasure Data API key'
|
@@ -316,8 +315,6 @@ module List
|
|
316
315
|
add_list 'help', %w[command], 'Show usage of a command'
|
317
316
|
|
318
317
|
# aliases
|
319
|
-
add_alias 'plan', 'plan:status'
|
320
|
-
|
321
318
|
add_alias 'db', 'db:show'
|
322
319
|
add_alias 'dbs', 'db:list'
|
323
320
|
|
data/lib/td/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: td
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.47
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -149,7 +149,6 @@ files:
|
|
149
149
|
- lib/td/command/list.rb
|
150
150
|
- lib/td/command/org.rb
|
151
151
|
- lib/td/command/password.rb
|
152
|
-
- lib/td/command/plan.rb
|
153
152
|
- lib/td/command/query.rb
|
154
153
|
- lib/td/command/result.rb
|
155
154
|
- lib/td/command/role.rb
|
data/lib/td/command/plan.rb
DELETED