Sha256: 7d7740704a4df4d8a10ec9185f60aabfb534832e8a3c3092cd5983008ee74d21

Contents?: true

Size: 668 Bytes

Versions: 20

Compression:

Stored size: 668 Bytes

Contents

# frozen_string_literal: true

# Specify the environment to use when compiling the catalog. This is useful only in conjunction
# with `--preserve-environments`.
# @param parser [OptionParser object] The OptionParser argument
# @param options [Hash] Options hash being constructed; this is modified in this method.
OctocatalogDiff::Cli::Options::Option.newoption(:environment) do
  has_weight 502

  def parse(parser, options)
    OctocatalogDiff::Cli::Options.option_globally_or_per_branch(
      parser: parser,
      options: options,
      cli_name: 'environment',
      option_name: 'environment',
      desc: 'Environment for catalog compilation'
    )
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
octocatalog-diff-2.3.1 lib/octocatalog-diff/cli/options/environment.rb
octocatalog-diff-2.3.0 lib/octocatalog-diff/cli/options/environment.rb
octocatalog-diff-2.1.0 lib/octocatalog-diff/cli/options/environment.rb
octocatalog-diff-2.0.0 lib/octocatalog-diff/cli/options/environment.rb
octocatalog-diff-1.6.0 lib/octocatalog-diff/cli/options/environment.rb
octocatalog-diff-1.5.4 lib/octocatalog-diff/cli/options/environment.rb
octocatalog-diff-1.5.3 lib/octocatalog-diff/cli/options/environment.rb
octocatalog-diff-1.5.2 lib/octocatalog-diff/cli/options/environment.rb
octocatalog-diff-1.5.1 lib/octocatalog-diff/cli/options/environment.rb
octocatalog-diff-1.5.0 lib/octocatalog-diff/cli/options/environment.rb
octocatalog-diff-1.4.1 lib/octocatalog-diff/cli/options/environment.rb
octocatalog-diff-1.4.0 lib/octocatalog-diff/cli/options/environment.rb
octocatalog-diff-1.3.0 lib/octocatalog-diff/cli/options/environment.rb
octocatalog-diff-1.2.0 lib/octocatalog-diff/cli/options/environment.rb
octocatalog-diff-1.1.0 lib/octocatalog-diff/cli/options/environment.rb
octocatalog-diff-1.0.4 lib/octocatalog-diff/cli/options/environment.rb
octocatalog-diff-1.0.3 lib/octocatalog-diff/cli/options/environment.rb
octocatalog-diff-1.0.2 lib/octocatalog-diff/cli/options/environment.rb
octocatalog-diff-1.0.1 lib/octocatalog-diff/cli/options/environment.rb
octocatalog-diff-1.0.0 lib/octocatalog-diff/cli/options/environment.rb