Revision f8ecc788
Added by Thomas McKay almost 9 years ago
lib/hammer_cli_csv/base.rb | ||
---|---|---|
13 | 13 |
require 'hammer_cli' |
14 | 14 |
require 'json' |
15 | 15 |
require 'csv' |
16 |
require 'hammer_cli_csv/csv' |
|
16 | 17 |
|
17 | 18 |
module HammerCLICsv |
18 | 19 |
class BaseCommand < HammerCLI::Apipie::Command |
19 | 20 |
NAME = 'Name' |
20 | 21 |
COUNT = 'Count' |
21 | 22 |
|
23 |
def request_help(help_command = 'hammer csv', help_options = '') |
|
24 |
puts "TODO: write some help!" |
|
25 |
exit(HammerCLI::EX_OK) |
|
26 |
end |
|
27 |
|
|
22 | 28 |
option %w(-v --verbose), :flag, 'be verbose' |
23 | 29 |
option %w(--threads), 'THREAD_COUNT', 'Number of threads to hammer with', :default => 1 |
24 | 30 |
option %w(--csv-export), :flag, 'Export current data instead of importing' |
Also available in: Unified diff
csv-scope - lots of cleanup