CommandItem¶
Bases: cursesmenu.items.ExternalItem
A menu item to execute a console command
Variables: - command (str) – The console command to be executed
- arguments (list[str]) – An optional list of string arguments to be passed to the command
- exit_status (int) – the exit status of the command, None if it hasn’t been run yet
This class overrides this method
Returns: the exit status of the command Return type: int