MCPcopy Index your code
hub / github.com/httpie/cli / cli_sessions

Function cli_sessions

httpie/manager/tasks/sessions.py:17–27  ·  view source on GitHub ↗
(env: Environment, args: argparse.Namespace)

Source from the content-addressed store, hash-verified

15
16
17def 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
30def upgrade_session(env: Environment, args: argparse.Namespace, hostname: str, session_name: str):

Callers

nothing calls this directly

Calls 4

missing_subcommandFunction · 0.90
cli_upgrade_sessionFunction · 0.85
cli_upgrade_all_sessionsFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected