forked from Baguette/tap-aggregator
option --storage
This commit is contained in:
parent
6f91055f11
commit
2f45debdac
@ -51,6 +51,7 @@ show_projects = [] of String
|
|||||||
show_environments = [] of String
|
show_environments = [] of String
|
||||||
show_revisions = [] of String
|
show_revisions = [] of String
|
||||||
show_as_summary = true
|
show_as_summary = true
|
||||||
|
storage_directory = "storage"
|
||||||
|
|
||||||
OptionParser.parse! do |parser|
|
OptionParser.parse! do |parser|
|
||||||
parser.banner = "usage: tap-aggregator <command> [options]"
|
parser.banner = "usage: tap-aggregator <command> [options]"
|
||||||
@ -72,6 +73,10 @@ OptionParser.parse! do |parser|
|
|||||||
show_revisions << id
|
show_revisions << id
|
||||||
end
|
end
|
||||||
|
|
||||||
|
parser.on("-s storage", "--storage storage", "Default: storage") do |storage|
|
||||||
|
storage_directory = storage
|
||||||
|
end
|
||||||
|
|
||||||
parser.on("-v", "--verbose", "Prints all data instead of just summaries.") do
|
parser.on("-v", "--verbose", "Prints all data instead of just summaries.") do
|
||||||
show_as_summary = false
|
show_as_summary = false
|
||||||
end
|
end
|
||||||
@ -94,7 +99,7 @@ end
|
|||||||
|
|
||||||
command = args[0]
|
command = args[0]
|
||||||
|
|
||||||
storage = Storage.new
|
storage = Storage.new storage_directory
|
||||||
|
|
||||||
enum Tap::Entry::Status
|
enum Tap::Entry::Status
|
||||||
def to_s
|
def to_s
|
||||||
|
Loading…
Reference in New Issue
Block a user