bin/aptly-cli in aptly_cli-0.3.10 vs bin/aptly-cli in aptly_cli-0.4.0
- old
+ new
@@ -181,10 +181,38 @@
aptly_command = AptlyCli::AptlyRepo.new(config, options)
puts aptly_command.repo_list()
end
end
+command :repo_package_add do |c|
+ c.syntax = 'aptly-cli repo_package_add [options]'
+ c.summary = 'Add existing package to local repository'
+ c.description = 'Add existing package to local repository'
+ c.example 'Add packages to local repository', 'aptly-cli repo_package_add --name megatronsoftware \'Pamd64 geoipupdate 2.0.0 87f1591307e50817\' \'Pi386 geoipupdate 2.0.0 87f1591307e50817\''
+ c.option '--name NAME', String, 'Local repository name, required'
+ c.action do |args, options|
+ config = AptlyCli::AptlyLoad.new.configure_with($config_file)
+ handle_global_options options
+ aptly_command = AptlyCli::AptlyRepo.new(config, options)
+ puts aptly_command.repo_package_add({ :name => options.name }, args)
+ end
+end
+
+command :repo_package_delete do |c|
+ c.syntax = 'aptly-cli repo_package_delete [options]'
+ c.summary = 'Delete package from local repository'
+ c.description = 'Delete package from local repository'
+ c.example 'Delete packages from local repository', 'aptly-cli repo_package_delete --name megatronsoftware \'Pamd64 geoipupdate 2.0.0 87f1591307e50817\' \'Pi386 geoipupdate 2.0.0 87f1591307e50817\''
+ c.option '--name NAME', String, 'Local repository name, required'
+ c.action do |args, options|
+ config = AptlyCli::AptlyLoad.new.configure_with($config_file)
+ handle_global_options options
+ aptly_command = AptlyCli::AptlyRepo.new(config, options)
+ puts aptly_command.repo_package_delete({ :name => options.name }, args)
+ end
+end
+
command :repo_package_query do |c|
c.syntax = 'aptly-cli repo_package_query [options]'
c.summary = 'List all packages or search on repo contents, requires --name'
c.description = 'List all packages in local repository or perform search on repository contents and return result., requires --name'
c.example 'description', 'aptly-cli repo_package_query --name megatronsoftware -query geoipupdate'
@@ -244,9 +272,23 @@
c.action do |args, options|
config = AptlyCli::AptlyLoad.new.configure_with($config_file)
handle_global_options options
aptly_command = AptlyCli::AptlyRepo.new(config, options)
puts aptly_command.repo_show(options.name)
+ 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]'