Sha256: 88b899c294e28613a97ba104bf27b3b3d1f4529fff8b09c0f136a1b0f5b7d8f2

Contents?: true

Size: 909 Bytes

Versions: 5

Compression:

Stored size: 909 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 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

5 entries across 5 versions & 1 rubygems

Version Path
takeltau-0.35.18 lib/takeltau/self/cli.rb
takeltau-0.35.15 lib/takeltau/self/cli.rb
takeltau-0.35.14 lib/takeltau/self/cli.rb
takeltau-0.35.12 lib/takeltau/self/cli.rb
takeltau-0.35.11 lib/takeltau/self/cli.rb