Sha256: 0f407ce3e20ced7ffebc875da013d117b3e354a6e6b60967d24de850abed7556

Contents?: true

Size: 650 Bytes

Versions: 6

Compression:

Stored size: 650 Bytes

Contents

# frozen_string_literal: true

module Takeltau
  # takeltau completion
  class Completion < SubCommandBase
    include LoggingModule

    desc 'bash', 'Print bash completion code'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Print bash completion code
    This command will print bash code which can be parsed to enable auto-completion for the takelage cli.
    Add this to your bash startup files:

    source <(tau completion bash)
    LONGDESC
    # Print bash completion code.
    def bash
      completion_bash = Takeltau::CLI.new.bash_fylla
      exit false if completion_bash == false
      say completion_bash
      true
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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