MCPcopy
hub / github.com/httpie/cli / program

Function program

httpie/manager/core.py:33–42  ·  view source on GitHub ↗
(args: argparse.Namespace, env: Environment)

Source from the content-addressed store, hash-verified

31
32
33def program(args: argparse.Namespace, env: Environment) -> ExitStatus:
34 if args.action is None:
35 parser.error(MSG_NAKED_INVOCATION)
36
37 if args.action == 'plugins':
38 return dispatch_cli_task(env, args.action, args)
39 elif args.action == 'cli':
40 return dispatch_cli_task(env, args.cli_action, args)
41
42 return ExitStatus.SUCCESS

Callers

nothing calls this directly

Calls 2

dispatch_cli_taskFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected