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.46.9 lib/takeltau/ship/completion/cli.rb
takeltau-0.46.8 lib/takeltau/ship/completion/cli.rb
takeltau-0.46.5 lib/takeltau/ship/completion/cli.rb
takeltau-0.46.1 lib/takeltau/ship/completion/cli.rb
takeltau-0.46.0 lib/takeltau/ship/completion/cli.rb
takeltau-0.45.27 lib/takeltau/ship/completion/cli.rb
takeltau-0.45.26 lib/takeltau/ship/completion/cli.rb
takeltau-0.45.24 lib/takeltau/ship/completion/cli.rb
takeltau-0.45.23 lib/takeltau/ship/completion/cli.rb
takeltau-0.45.22 lib/takeltau/ship/completion/cli.rb
takeltau-0.45.21 lib/takeltau/ship/completion/cli.rb
takeltau-0.45.19 lib/takeltau/ship/completion/cli.rb
takeltau-0.45.17 lib/takeltau/ship/completion/cli.rb
takeltau-0.45.16 lib/takeltau/ship/completion/cli.rb
takeltau-0.45.14 lib/takeltau/ship/completion/cli.rb
takeltau-0.45.13 lib/takeltau/ship/completion/cli.rb
takeltau-0.45.12 lib/takeltau/ship/completion/cli.rb
takeltau-0.45.11 lib/takeltau/ship/completion/cli.rb
takeltau-0.45.10 lib/takeltau/ship/completion/cli.rb
takeltau-0.45.9 lib/takeltau/ship/completion/cli.rb