Class: RubynCode::CLI::Commands::Version

Inherits:
Base
  • Object
show all
Defined in:
lib/rubyn_code/cli/commands/version.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

aliases, all_names, hidden?

Class Method Details

.command_nameObject



7
# File 'lib/rubyn_code/cli/commands/version.rb', line 7

def self.command_name = '/version'

.descriptionObject



8
# File 'lib/rubyn_code/cli/commands/version.rb', line 8

def self.description = 'Show version info'

Instance Method Details

#execute(_args, ctx) ⇒ Object



10
11
12
# File 'lib/rubyn_code/cli/commands/version.rb', line 10

def execute(_args, ctx)
  ctx.renderer.info("Rubyn Code v#{RubynCode::VERSION}")
end