Merge pull request 'option --storage' (#1) from Izimic/tap-aggregator:master into master

Reviewed-on: #1
This commit is contained in:
karchnu 2021-01-26 03:17:37 +01:00
commit f6ef63b70a

View File

@ -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