Skip to content

Commit

Permalink
Add AptlyPackage#package_show to binary (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
SHyx0rmZ authored and sepulworld committed Sep 23, 2016
1 parent 617e599 commit f4edbef
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions bin/aptly-cli
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,20 @@ command :repo_show do |c|
end
end

command :package_show do |c|
c.syntax = 'aptly-cli package_show [options]'
c.summary = 'Show package info'
c.description = 'Show package info'
c.example 'Show package', 'aptly-cli package_show --package-key \'Pamd64 geoipupdate 2.0.0 87f1591307e50817\''
c.option '--package-key PACKAGE', String, 'package key'
c.action do |args, options|
config = AptlyCli::AptlyLoad.new.configure_with($config_file)
handle_global_options options
aptly_command = AptlyCli::AptlyPackage.new(config, options)
puts aptly_command.package_show(URI.escape(options.package_key))
end
end

command :publish_drop do |c|
c.syntax = 'aptly-cli publish_drop [options]'
c.summary = 'Delete published repository'
Expand Down

0 comments on commit f4edbef

Please sign in to comment.