Sha256: e802aeb0aa98db4b807f0636c80c3df391572483e5076e36803f5f5f8a0997e1

Contents?: true

Size: 640 Bytes

Versions: 45

Compression:

Stored size: 640 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 takelship cli.
    Add this to your bash startup files:

    source <(ship completion bash)
    LONGDESC
    def bash
      completion_bash = ship_completion_bash
      exit false if completion_bash == false
      say completion_bash
      true
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
takeltau-0.45.8 lib/takeltau/ship/completion/cli.rb
takeltau-0.45.6 lib/takeltau/ship/completion/cli.rb
takeltau-0.45.5 lib/takeltau/ship/completion/cli.rb
takeltau-0.45.4 lib/takeltau/ship/completion/cli.rb
takeltau-0.45.3 lib/takeltau/ship/completion/cli.rb
takeltau-0.45.2 lib/takeltau/ship/completion/cli.rb
takeltau-0.45.0 lib/takeltau/ship/completion/cli.rb
takeltau-0.44.42 lib/takeltau/ship/completion/cli.rb
takeltau-0.44.41 lib/takeltau/ship/completion/cli.rb
takeltau-0.44.39 lib/takeltau/ship/completion/cli.rb
takeltau-0.44.37 lib/takeltau/ship/completion/cli.rb
takeltau-0.44.36 lib/takeltau/ship/completion/cli.rb
takeltau-0.44.35 lib/takeltau/ship/completion/cli.rb
takeltau-0.44.29 lib/takeltau/ship/completion/cli.rb
takeltau-0.44.27 lib/takeltau/ship/completion/cli.rb
takeltau-0.44.24 lib/takeltau/ship/completion/cli.rb
takeltau-0.44.23 lib/takeltau/ship/completion/cli.rb
takeltau-0.44.19 lib/takeltau/ship/completion/cli.rb
takeltau-0.44.18 lib/takeltau/ship/completion/cli.rb
takeltau-0.44.15 lib/takeltau/ship/completion/cli.rb