Class: Ncn::Command::Help

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

Constant Summary collapse

HELP =
<<~TEXT
  Usage:

  create - generate new note and open it with the $EDITOR
  open - open one or multiple notes as a single draft
  help - list all commands or display detailed help for a specific command

  Common options:

  --help - similar to the help command
  --path - repository directory path (default is "notes" in the current directory)
TEXT

Instance Attribute Summary

Attributes inherited from Base

#params, #repository

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

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

Instance Method Details

#performObject



17
18
19
# File 'lib/ncn/command/help.rb', line 17

def perform
  puts HELP
end