Sha256: 90231abb3ba54c42358c4cec276dbde5de6d3de92f381edd531dec9508f6c17d

Contents?: true

Size: 1.94 KB

Versions: 1

Compression:

Stored size: 1.94 KB

Contents

#!/usr/bin/env ruby

require 'rubygems'
require 'commander/import'

program :version, '0.0.1'
program :description, 'Aptly repository API client'

command :repo do |c|
  c.syntax = 'aptly-cli repo [options]'
  c.summary = ''
  c.description = ''
  c.example 'description', 'command example'
  c.option '--some-switch', 'Some switch that does something'
  c.action do |args, options|
    # Do something or c.when_called Aptly-cli::Commands::Repo
  end
end

command :snapshot do |c|
  c.syntax = 'aptly-cli snapshot [options]'
  c.summary = ''
  c.description = ''
  c.example 'description', 'command example'
  c.option '--some-switch', 'Some switch that does something'
  c.action do |args, options|
    # Do something or c.when_called Aptly-cli::Commands::Snapshot
  end
end

command :publish do |c|
  c.syntax = 'aptly-cli publish [options]'
  c.summary = ''
  c.description = ''
  c.example 'description', 'command example'
  c.option '--some-switch', 'Some switch that does something'
  c.action do |args, options|
    # Do something or c.when_called Aptly-cli::Commands::Publish
  end
end

command :package do |c|
  c.syntax = 'aptly-cli package [options]'
  c.summary = ''
  c.description = ''
  c.example 'description', 'command example'
  c.option '--some-switch', 'Some switch that does something'
  c.action do |args, options|
    # Do something or c.when_called Aptly-cli::Commands::Package
  end
end

command :graph do |c|
  c.syntax = 'aptly-cli graph [options]'
  c.summary = ''
  c.description = ''
  c.example 'description', 'command example'
  c.option '--some-switch', 'Some switch that does something'
  c.action do |args, options|
    # Do something or c.when_called Aptly-cli::Commands::Graph
  end
end

command :version do |c|
  c.syntax = 'aptly-cli version'
  c.description = 'Display aptly server version'
  c.example 'description', 'aptly-cli version'
  c.action do |args, options|
    # Do something or c.when_called Aptly-cli::Commands::Version
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aptly_cli-0.0.1 bin/aptly-cli