MCPcopy
hub / github.com/facefusion/facefusion / cli

Function cli

facefusion/core.py:22–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21
22def cli() -> None:
23 if pre_check():
24 signal.signal(signal.SIGINT, signal_exit)
25 program = create_program()
26
27 if validate_args(program):
28 args = vars(program.parse_args())
29 apply_args(args, state_manager.init_item)
30
31 if state_manager.get_item('command'):
32 logger.init(state_manager.get_item('log_level'))
33 route(args)
34 else:
35 program.print_help()
36 else:
37 hard_exit(2)
38 else:
39 hard_exit(2)
40
41
42def route(args : Args) -> None:

Callers

nothing calls this directly

Calls 6

create_programFunction · 0.90
validate_argsFunction · 0.90
apply_argsFunction · 0.90
hard_exitFunction · 0.90
routeFunction · 0.85
pre_checkFunction · 0.70

Tested by

no test coverage detected