(env: Environment, args: argparse.Namespace)
| 15 | |
| 16 | |
| 17 | def cli_sessions(env: Environment, args: argparse.Namespace) -> ExitStatus: |
| 18 | action = args.cli_sessions_action |
| 19 | if action is None: |
| 20 | parser.error(missing_subcommand('cli', 'sessions')) |
| 21 | |
| 22 | if action == 'upgrade': |
| 23 | return cli_upgrade_session(env, args) |
| 24 | elif action == 'upgrade-all': |
| 25 | return cli_upgrade_all_sessions(env, args) |
| 26 | else: |
| 27 | raise ValueError(f'Unexpected action: {action}') |
| 28 | |
| 29 | |
| 30 | def upgrade_session(env: Environment, args: argparse.Namespace, hostname: str, session_name: str): |
nothing calls this directly
no test coverage detected