Sha256: 1b41d26d300d002aedbdefdd73f38276d9ab2844edb73831fcf03f9e3f27ad0b

Contents?: true

Size: 594 Bytes

Versions: 1

Compression:

Stored size: 594 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             :values, 'valure to pass throught', param_type: 'String|Int'

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cmdlet-0.8.0 .builders/generators/cmdlets/misc.rb