Sha256: b44f2493d99c31665d1c987c2cff55549666b1a1af72b5dc310c2e66a9874812

Contents?: true

Size: 914 Bytes

Versions: 61

Compression:

Stored size: 914 Bytes

Contents

# frozen_string_literal: true

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

  # takelage self
  class Self < SubCommandBase
    include LoggingModule
    include SelfList

    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

61 entries across 61 versions & 1 rubygems

Version Path
takelage-0.21.1 lib/takelage/self/cli.rb
takelage-0.21.0 lib/takelage/self/cli.rb
takelage-0.20.2 lib/takelage/self/cli.rb
takelage-0.20.1 lib/takelage/self/cli.rb
takelage-0.20.0 lib/takelage/self/cli.rb
takelage-0.19.2 lib/takelage/self/cli.rb
takelage-0.19.1 lib/takelage/self/cli.rb
takelage-0.19.0 lib/takelage/self/cli.rb
takelage-0.18.1 lib/takelage/self/cli.rb
takelage-0.18.0 lib/takelage/self/cli.rb
takelage-0.17.1 lib/takelage/self/cli.rb
takelage-0.17.0 lib/takelage/self/cli.rb
takelage-0.16.0 lib/takelage/self/cli.rb
takelage-0.15.1 lib/takelage/self/cli.rb
takelage-0.15.0 lib/takelage/self/cli.rb
takelage-0.14.5 lib/takelage/self/cli.rb
takelage-0.14.4 lib/takelage/self/cli.rb
takelage-0.14.3 lib/takelage/self/cli.rb
takelage-0.14.2 lib/takelage/self/cli.rb
takelage-0.14.1 lib/takelage/self/cli.rb