Class: Arcanus::Command::Help

Inherits:
Base
  • Object
show all
Defined in:
lib/arcanus/command/help.rb

Instance Method Summary collapse

Methods inherited from Base

description, #execute_command, from_arguments, #initialize, #run, short_name

Methods included from Utils

camel_case, deep_dup, snake_case

Constructor Details

This class inherits a constructor from Arcanus::Command::Base

Instance Method Details

#executeObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/arcanus/command/help.rb', line 5

def execute
  ui.print 'Arcanus is a tool for managing encrypted secrets in a repository.'
  ui.newline

  ui.print 'Usage: ', newline: false
  ui.info 'arcanus [command]'
  ui.newline

  command_classes.each do |command_class|
    ui.info command_class.short_name.ljust(12, ' '), newline: false
    ui.print command_class.description
  end

  ui.newline
  ui.print "See #{Arcanus::REPO_URL}#usage for full documentation"
end