363
364
365
366
367
368
369
370
371
372
373
374
375
376
|
# File 'lib/rock_books/cmd_line/command_line_interface.rb', line 363
def commands
@commands_ ||= [
Command.new('rec', 'receipts', -> (*options) { cmd_rec(options) }),
Command.new('rep', 'reports', -> (*_options) { cmd_rep }),
Command.new('w', 'write_reports', -> (*_options) { cmd_w }),
Command.new('c', 'chart_of_accounts', -> (*_options) { cmd_c }),
Command.new('jo', 'journals', -> (*_options) { cmd_j }),
Command.new('h', 'help', -> (*_options) { cmd_h }),
Command.new('proj','project_page', -> (*_options) { cmd_proj }),
Command.new('q', 'quit', -> (*_options) { cmd_x }),
Command.new('rel', 'reload_data', -> (*_options) { cmd_rel }),
Command.new('x', 'xit', -> (*_options) { cmd_x })
]
end
|