Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.

Commit b242159

Browse files
committed
Add "exit" command to CLI
1 parent c61a449 commit b242159

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/cli/console.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def on_event_emitted(event)
103103
end
104104

105105
def execute_user_command(command, args)
106+
command = 'quit' if command == 'exit'
106107
if can_handle? command
107108
puts unless commands_without_output.include? command
108109
send(command, *args) if correct_number_of_args?(command, args)

0 commit comments

Comments
 (0)