Sha256: 2f3e0a52c52de15540cd8a2a38e82bd537eb2416bbc11320b22f52eb5b6a32d9

Contents?: true

Size: 914 Bytes

Versions: 6

Compression:

Stored size: 914 Bytes

Contents

# frozen_string_literal: true

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

  # takeltau self
  class Self < SubCommandBase
    include LoggingModule
    include SelfList

    desc 'config [COMMAND]', 'Manage takeltau 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 takeltau semantic version number'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Print takeltau semantic version number
    LONGDESC
    # Print takeltau semantic version number.
    def version
      say VERSION
      true
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
takeltau-0.34.15 lib/takeltau/self/cli.rb
takeltau-0.34.14 lib/takeltau/self/cli.rb
takeltau-0.34.13 lib/takeltau/self/cli.rb
takeltau-0.34.12 lib/takeltau/self/cli.rb
takeltau-0.34.11 lib/takeltau/self/cli.rb
takeltau-0.34.9 lib/takeltau/self/cli.rb