| 1 | package App::Ordo::Command::Exit; | ||
| 2 | use Moo; | ||
| 3 | extends 'App::Ordo::Command::Base'; | ||
| 4 | |||
| 5 | sub name { "exit" } | ||
| 6 | sub summary { "Exit the interactive shell" } | ||
| 7 | sub usage { "" } | ||
| 8 | sub aliases { ['quit'] } | ||
| 9 | |||
| 10 | sub option_spec { {} } | ||
| 11 | |||
| 12 | sub execute { | ||
| 13 | my ($self) = @_; | ||
| 14 | say colored(["bold yellow"], "Goodbye!"); | ||
| 15 | exit 0; | ||
| 16 | } | ||
| 17 | |||
| 18 | 1; |