lib/pdk/cli.rb in pdk-1.4.1 vs lib/pdk/cli.rb in pdk-1.5.0
- old
+ new
@@ -9,10 +9,11 @@
require 'pdk/generate/module'
require 'pdk/i18n'
require 'pdk/logger'
require 'pdk/report'
require 'pdk/util/version'
+require 'pdk/util/puppet_version'
module PDK::CLI
def self.run(args)
@base_cmd.run(args)
rescue PDK::CLI::ExitWithError => e
@@ -45,9 +46,14 @@
dsl.option nil, 'skip-interview', _('When specified, skips interactive querying of metadata.')
end
def self.full_interview_option(dsl)
dsl.option nil, 'full-interview', _('When specified, interactive querying of metadata will include all optional questions.')
+ end
+
+ def self.puppet_version_options(dsl)
+ dsl.option nil, 'puppet-version', _('Puppet version to run tests or validations against.'), argument: :required
+ dsl.option nil, 'pe-version', _('Puppet Enterprise version to run tests or validations against.'), argument: :required
end
@base_cmd = Cri::Command.define do
name 'pdk'
usage _('pdk command [options]')