Return shell/session commands and their registered aliases.
()
| 77 | |
| 78 | |
| 79 | def get_shell_only_command_names(): |
| 80 | """Return shell/session commands and their registered aliases.""" |
| 81 | command_names = {command.lower() for command in SHELL_ONLY_COMMANDS} |
| 82 | for alias, command in aliases.items(): |
| 83 | target = command[0] if isinstance(command, (tuple, list)) else command |
| 84 | if isinstance(target, str) and target.lower() in command_names: |
| 85 | command_names.add(alias.lower()) |
| 86 | return command_names |
| 87 | |
| 88 | logging.getLogger('asyncio').setLevel(logging.WARNING) |
| 89 |