Sha256: 11dd3c12c5e913eb0c16de2a8f1222921139744f8a1a8d8d6100fde2ea6cbb55

Contents?: true

Size: 736 Bytes

Versions: 1

Compression:

Stored size: 736 Bytes

Contents

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

    desc "init", "Initialize project with .codebuild files"
    long_desc Help.text(:init)
    def init
      puts "init called"
    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

1 entries across 1 versions & 1 rubygems

Version Path
codebuild-0.1.0 lib/codebuild/cli.rb