Sha256: f98c60387beed529abe7fe39de04d68f7a47b403b149007ca170116a486827ee

Contents?: true

Size: 1.48 KB

Versions: 34

Compression:

Stored size: 1.48 KB

Contents

#
# Copyright (C) 2014 Conjur Inc
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
# the Software, and to permit persons to whom the Software is furnished to do so,
# subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
require 'conjur/command'

class Conjur::Command::ShellInit < Conjur::Command
  desc 'Provide the command to initialize the shell for conjur'

  Conjur::CLI.command :shellinit do |c|
    hide_docs c
    c.desc 'Provide the command to initialize the shell for conjur'
    c.action do |global_options,options,args|
      cmd = <<-eoc
complete -o nospace -C _conjur conjur;
eoc
      puts cmd.tr "\n", " "
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
conjur-cli-5.2.3 lib/conjur/command/shellinit.rb
conjur-cli-5.2.1 lib/conjur/command/shellinit.rb
conjur-cli-5.2.0 lib/conjur/command/shellinit.rb
conjur-cli-5.1.2 lib/conjur/command/shellinit.rb
conjur-cli-5.1.1 lib/conjur/command/shellinit.rb
conjur-cli-5.1.0 lib/conjur/command/shellinit.rb
conjur-cli-4.30.1 lib/conjur/command/shellinit.rb
conjur-cli-4.30.0 lib/conjur/command/shellinit.rb
conjur-cli-4.29.0 lib/conjur/command/shellinit.rb
conjur-cli-4.28.2 lib/conjur/command/shellinit.rb
conjur-cli-4.28.1 lib/conjur/command/shellinit.rb
conjur-cli-4.28.0 lib/conjur/command/shellinit.rb
conjur-cli-4.27.0 lib/conjur/command/shellinit.rb
conjur-cli-4.26.0 lib/conjur/command/shellinit.rb