Sha256: 0024286a4de2df2b49d95110ce36e61ded476eeab2952d73ce8fcf09be6ae34d

Contents?: true

Size: 887 Bytes

Versions: 17

Compression:

Stored size: 887 Bytes

Contents

module Takelage

  # semantic version number
  VERSION = (File.read "#{File.dirname(__FILE__)}/../version").chomp

  # takelage self
  class Self < SubCommandBase

    include LoggingModule
    include SelfModule

    desc 'config [COMMAND]', 'Manage takelage configuration'
    subcommand 'config', SelfConfig

    #
    # self list
    #
    desc 'list', 'List all commands'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    List all commands
    LONGDESC
    # List all commands.
    def list
      list = self_list
      exit false if list == false
      say list
      true
    end

    #
    # self version
    #
    desc 'version', 'Print takelage semantic version number'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Print takelage semantic version number
    LONGDESC
    # Print takelage semantic version number.
    def version
      say VERSION
      true
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
takelage-0.13.1 lib/takelage/self/cli.rb
takelage-0.13.0 lib/takelage/self/cli.rb
takelage-0.12.2 lib/takelage/self/cli.rb
takelage-0.12.1 lib/takelage/self/cli.rb
takelage-0.12.0 lib/takelage/self/cli.rb
takelage-0.11.1 lib/takelage/self/cli.rb
takelage-0.11.0 lib/takelage/self/cli.rb
takelage-0.10.0 lib/takelage/self/cli.rb
takelage-0.9.2 lib/takelage/self/cli.rb
takelage-0.9.1 lib/takelage/self/cli.rb
takelage-0.9.0 lib/takelage/self/cli.rb
takelage-0.8.1 lib/takelage/self/cli.rb
takelage-0.8.0 lib/takelage/self/cli.rb
takelage-0.7.2 lib/takelage/self/cli.rb
takelage-0.7.1 lib/takelage/self/cli.rb
takelage-0.7.0 lib/takelage/self/cli.rb
takelage-0.6.0 lib/takelage/self/cli.rb