Sha256: 8bebc19f3a9de3f156f6ad8db1385c1a60d5735cb26de1c85d542e7bb3645fc8

Contents?: true

Size: 941 Bytes

Versions: 87

Compression:

Stored size: 941 Bytes

Contents

# frozen_string_literal: true

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

  # tau self
  class Self < SubCommandBase
    include LoggingModule
    include SelfCommands

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

    #
    # self commands
    #
    desc 'commands', 'List all commands'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    List all commands
    LONGDESC
    # List all commands.
    def commands
      commands = self_commands
      exit false if commands == false
      say commands
      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

87 entries across 87 versions & 1 rubygems

Version Path
takeltau-0.46.9 lib/takeltau/self/cli.rb
takeltau-0.46.8 lib/takeltau/self/cli.rb
takeltau-0.46.5 lib/takeltau/self/cli.rb
takeltau-0.46.1 lib/takeltau/self/cli.rb
takeltau-0.46.0 lib/takeltau/self/cli.rb
takeltau-0.45.27 lib/takeltau/self/cli.rb
takeltau-0.45.26 lib/takeltau/self/cli.rb
takeltau-0.45.24 lib/takeltau/self/cli.rb
takeltau-0.45.23 lib/takeltau/self/cli.rb
takeltau-0.45.22 lib/takeltau/self/cli.rb
takeltau-0.45.21 lib/takeltau/self/cli.rb
takeltau-0.45.19 lib/takeltau/self/cli.rb
takeltau-0.45.17 lib/takeltau/self/cli.rb
takeltau-0.45.16 lib/takeltau/self/cli.rb
takeltau-0.45.14 lib/takeltau/self/cli.rb
takeltau-0.45.13 lib/takeltau/self/cli.rb
takeltau-0.45.12 lib/takeltau/self/cli.rb
takeltau-0.45.11 lib/takeltau/self/cli.rb
takeltau-0.45.10 lib/takeltau/self/cli.rb
takeltau-0.45.9 lib/takeltau/self/cli.rb