MCPcopy Create free account
hub / github.com/OpenDCAI/DataFlow-MM / cli_init

Function cli_init

dataflow/cli_funcs/cli_init.py:35–54  ·  view source on GitHub ↗
(subcommand)

Source from the content-addressed store, hash-verified

33 copy_files_recursively(DataFlowPath.get_dataflow_example_dir(), target_dir)
34
35def cli_init(subcommand):
36 print(f'{Fore.GREEN}Initializing in current working directory...{Style.RESET_ALL}')
37
38 # base initialize that only contain default scripts
39 if subcommand == "base":
40 _copy_pipelines()
41 _copy_examples()
42 _copy_playground()
43 # if subcommand == "model_zoo":
44 # _copy_train_scripts()
45 # _copy_demo_runs()
46 # _copy_demo_configs()
47 # _copy_dataset_json()
48 # # base initialize that only contain default scripts
49 # if subcommand == "backbone":
50 # _copy_train_scripts()
51 # _copy_demo_runs()
52 # _copy_demo_configs()
53 # _copy_dataset_json()
54 # print(f'{Fore.GREEN}Successfully initialized IMDLBenCo scripts.{Style.RESET_ALL}')

Callers 1

mainFunction · 0.90

Calls 3

_copy_pipelinesFunction · 0.85
_copy_examplesFunction · 0.85
_copy_playgroundFunction · 0.85

Tested by

no test coverage detected