class Rhelm::Subcommand::Version
Helm version subcommand: `helm version [flags]`. docs: helm.sh/docs/helm/helm_version/
Attributes
help[R]
short[R]
template[R]
Public Class Methods
new(options = {})
click to toggle source
Calls superclass method
Rhelm::Subcommand::Base::new
# File lib/rhelm/subcommand/version.rb, line 12 def initialize(options = {}) super @help = options[:help] @short = options[:short] @template = options[:template] end
Public Instance Methods
cli_args()
click to toggle source
Calls superclass method
Rhelm::Subcommand::Base#cli_args
# File lib/rhelm/subcommand/version.rb, line 24 def cli_args super.tap do |args| args << '--help' if help args << '--short' if short args << ['--template', template] if template end.flatten end
subcommand_name()
click to toggle source
# File lib/rhelm/subcommand/version.rb, line 20 def subcommand_name "version" end