exe/mdqt in mdqt-0.5.0 vs exe/mdqt in mdqt-0.6.0
- old
+ new
@@ -40,11 +40,12 @@
#c.option '--stdin', 'accept one or more entity ids from STDIN'
c.option '--all', 'Request all entity records'
c.option '--explain', 'Show details of client request and server response'
c.option '--tls-risky', "Don't check certificate used for TLS (usually a bad idea)"
c.option '--save-to PATH', String, 'Write all data to files in the specified directory'
- c.option '--link-id', 'If saving files, save files with aliases (requires `--save-to`)'
+ #c.option '--link-id', 'If saving files, save files with aliases (requires `--save-to`)'
+ c.option '--list', 'If saving files, print the names of files written to disk (requires `--save-to`)'
c.option '--verbose', 'Display extra information on stderr'
c.action do |args, options|
options.default MDQT::CLI::Defaults.cli_defaults
options.default({ service: MDQT::CLI::Defaults.base_url }) if options.service.to_s == ''
MDQT::CLI::Get.run(args, options)
@@ -101,11 +102,10 @@
c.syntax = 'mdqt ln XML_FILENAME'
c.description = 'Create a soft link to the file using an sha1 hash of the entityID'
c.option '--force', 'Overwrite any existing links'
c.option '--verbose', 'Display extra information on stderr'
c.action do |args, options|
- args = Dir.glob("*.xml") unless args && !args.empty?
options.default MDQT::CLI::Defaults.cli_defaults
options.default({ service: :not_required })
MDQT::CLI::Ln.run(args, options)
end
end
@@ -113,11 +113,10 @@
command :ls do |c|
c.syntax = 'mdqt ls XML_FILENAME/DIRECTORY'
c.description = 'List valid metadata files in directory'
c.option '--verbose', 'Display extra information on stderr'
c.action do |args, options|
- args = Dir.glob("*.xml") unless args && !args.empty?
options.default MDQT::CLI::Defaults.cli_defaults
options.default({ service: :not_required })
MDQT::CLI::Ls.run(args, options)
end
end
@@ -126,11 +125,10 @@
c.syntax = 'mdqt list [options]'
c.description = 'List entities available at the MDQ service'
c.option '--service URL', String, 'MDQ service to search for entities. Defaults to MDQT_SERVICE or MDQ_BASE_URL env variables'
c.option '--cache', "Cache downloads and try to fetch from cache where appropriate (deprecated)"
c.option '--refresh', "Never cache (will prevent --cache)"
- #c.option '--stdin', 'accept one or more entity ids from STDIN'
c.option '--verbose', 'Display extra information on stderr'
c.action do |args, options|
options.default MDQT::CLI::Defaults.cli_defaults
options.default({ service: MDQT::CLI::Defaults.base_url }) if options.service.to_s == ''
MDQT::CLI::List.run(args, options)
@@ -150,11 +148,11 @@
command :rename do |c|
c.syntax = 'mdqt rename XML_FILENAME'
c.description = 'Rename a file using the sha1 hash of its entityID'
c.option '--force', 'Overwrite any existing files with that name'
c.option '--verbose', 'Display extra information on stderr'
+ c.option '--link', 'Add a symlink with the original filename'
c.action do |args, options|
- args = Dir.glob("*.xml") unless args && !args.empty?
options.default MDQT::CLI::Defaults.cli_defaults
options.default({ service: :not_required })
MDQT::CLI::Rename.run(args, options)
end
end