Sha256: 47d83cedb22c18c9a406410d608e8b75033b798289b1d675abf30e86bbc8fe95

Contents?: true

Size: 591 Bytes

Versions: 5

Compression:

Stored size: 591 Bytes

Contents

# frozen_string_literal: true

KManager.action :misc_commands do
  action do
    CmdletDirector
      .init(k_builder, category: :misc)
      .cmdlet do
        name :safe
        description           'pass through the value with <> and single and double quotes left as is'
        result                'the value with <> and single and double quotes left as is'

        parameter             :value, 'value to pass through', param_type: 'String|Int'

        ruby <<-RUBY
          value = '' if value.nil?
          value
        RUBY
      end
      .generate
      # .debug
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cmdlet-0.10.1 .builders/generators/cmdlets/misc.rb
cmdlet-0.10.0 .builders/generators/cmdlets/misc.rb
cmdlet-0.9.2 .builders/generators/cmdlets/misc.rb
cmdlet-0.9.1 .builders/generators/cmdlets/misc.rb
cmdlet-0.9.0 .builders/generators/cmdlets/misc.rb