class Sesc::Exporter::Help

Constants

DESCRIPTION
FILTERS

Public Class Methods

alias_for(command) click to toggle source
# File lib/sesc/exporter/help.rb, line 56
def alias_for(command)
  Sesc::Cli::Options::COMMANDS_WITH_OPTIONS[command].join(' ')
end
descriptions() click to toggle source
# File lib/sesc/exporter/help.rb, line 25
def descriptions
  DESCRIPTION.each do |command, description|
    text = alias_for(command)
    puts("#{text}#{space_for(text)}#{description}")
  end
end
filters() click to toggle source
# File lib/sesc/exporter/help.rb, line 46
def filters
  puts ''
  puts 'Filtros:'
  puts ''

  FILTERS.each do |command, description|
    puts("#{command}#{space_for(command)}#{description}")
  end
end
header() click to toggle source
# File lib/sesc/exporter/help.rb, line 38
def header
  puts 'Uso: sesc [filtros...] [opções...]'
end
help() click to toggle source
# File lib/sesc/exporter/help.rb, line 42
def help
  puts "-h --help#{space_for('-h --help')}Exibe este texto de ajuda"
end
options() click to toggle source
# File lib/sesc/exporter/help.rb, line 32
def options
  puts ''
  puts 'Opções:'
  puts ''
end
print() click to toggle source
puts(text) click to toggle source
# File lib/sesc/exporter/help.rb, line 64
def puts(text)
  Sesc::Exporter::Printer.new(text.to_s).terminal
end
space_for(text) click to toggle source
# File lib/sesc/exporter/help.rb, line 60
def space_for(text)
  ' ' * (15 - text.length)
end