Class: SchwarmCli::Commands::Main

Inherits:
Thor
  • Object
show all
Defined in:
lib/schwarm_cli/commands/main.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


19
# File 'lib/schwarm_cli/commands/main.rb', line 19

def self.exit_on_failure? = true

Instance Method Details

#skillObject



62
63
64
65
# File 'lib/schwarm_cli/commands/main.rb', line 62

def skill
  path = File.expand_path("../../../schwarm-skill.md", __dir__)
  puts File.read(path)
end

#versionObject



55
56
57
# File 'lib/schwarm_cli/commands/main.rb', line 55

def version
  puts "schwarm-cli #{SchwarmCli::VERSION}"
end