Sha256: ffd0b3ccde6de3b96da69eaee791150cc0fc966189acfbc2d62cab122043e939

Contents?: true

Size: 672 Bytes

Versions: 11

Compression:

Stored size: 672 Bytes

Contents

# frozen_string_literal: true

module Takeltau
  # tau completion
  class ShipCompletion < SubCommandBase
    include LoggingModule
    include ShipCompletionBash

    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 = ship_completion_bash
      exit false if completion_bash == false
      say completion_bash
      true
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
takeltau-0.43.23 lib/takeltau/ship/completion/cli.rb
takeltau-0.43.21 lib/takeltau/ship/completion/cli.rb
takeltau-0.43.19 lib/takeltau/ship/completion/cli.rb
takeltau-0.43.16 lib/takeltau/ship/completion/cli.rb
takeltau-0.43.15 lib/takeltau/ship/completion/cli.rb
takeltau-0.43.14 lib/takeltau/ship/completion/cli.rb
takeltau-0.43.10 lib/takeltau/ship/completion/cli.rb
takeltau-0.43.6 lib/takeltau/ship/completion/cli.rb
takeltau-0.43.4 lib/takeltau/ship/completion/cli.rb
takeltau-0.43.2 lib/takeltau/ship/completion/cli.rb
takeltau-0.43.1 lib/takeltau/ship/completion/cli.rb