option --storage

remotes/1727960826813664525/tmp_refs/heads/master
Izimic 2020-12-28 09:08:24 +01:00
parent 6f91055f11
commit 2f45debdac
1 changed files with 6 additions and 1 deletions

View File

@ -51,6 +51,7 @@ show_projects = [] of String
show_environments = [] of String
show_revisions = [] of String
show_as_summary = true
storage_directory = "storage"
OptionParser.parse! do |parser|
parser.banner = "usage: tap-aggregator <command> [options]"
@ -72,6 +73,10 @@ OptionParser.parse! do |parser|
show_revisions << id
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
show_as_summary = false
end
@ -94,7 +99,7 @@ end
command = args[0]
storage = Storage.new
storage = Storage.new storage_directory
enum Tap::Entry::Status
def to_s