MCPcopy
hub / github.com/xming521/WeClone / cli

Function cli

weclone/cli.py:83–100  ·  view source on GitHub ↗

WeClone: One-stop solution for creating digital avatars from chat history

(ctx, config_path)

Source from the content-addressed store, hash-verified

81)
82@click.pass_context
83def cli(ctx, config_path):
84 """WeClone: One-stop solution for creating digital avatars from chat history"""
85 # Only show community info when no subcommand is invoked
86 if ctx.invoked_subcommand is None:
87 show_community_info()
88 click.echo(ctx.get_help())
89 return
90
91 if config_path:
92 os.environ["WECLONE_CONFIG_PATH"] = config_path
93 logger.info(f"Config file path set to: {config_path}")
94
95 _check_project_root()
96 _check_versions()
97 global cli_config
98 cli_config = cast(CliArgs, load_config(arg_type="cli_args"))
99
100 configure_log_level_from_config()
101
102
103@cli.command("make-dataset", help="Process chat history CSV files to generate Q&A pair datasets.")

Callers 1

cli.pyFile · 0.85

Calls 5

load_configFunction · 0.90
show_community_infoFunction · 0.85
_check_project_rootFunction · 0.85
_check_versionsFunction · 0.85

Tested by

no test coverage detected