Sha256: e84c008042018ac8894a0b51de2b9447b12e4d3e2352b76b9bb00b5c828a16c3

Contents?: true

Size: 736 Bytes

Versions: 2

Compression:

Stored size: 736 Bytes

Contents

module S3Antivirus
  class CLI < Command
    class_option :verbose, type: :boolean
    class_option :noop, type: :boolean

    desc "scan", "Poll SQS queue for s3 virus findings."
    long_desc Help.text(:scan)
    def scan
      Scan.new(options).run
    end

    desc "completion *PARAMS", "Prints words for auto-completion."
    long_desc Help.text(:completion)
    def completion(*params)
      Completer.new(CLI, *params).run
    end

    desc "completion_script", "Generates a script that can be eval to setup auto-completion."
    long_desc Help.text(:completion_script)
    def completion_script
      Completer::Script.generate
    end

    desc "version", "prints version"
    def version
      puts VERSION
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
s3-antivirus-0.2.0 lib/s3_antivirus/cli.rb
s3-antivirus-0.1.0 lib/s3_antivirus/cli.rb