MCPcopy Create free account
hub / github.com/SenseTime-Copilot/raccoon-dataanalysis-skill / cmd_example

Function cmd_example

scripts/main.py:590–608  ·  view source on GitHub ↗

运行使用示例

(args)

Source from the content-addressed store, hash-verified

588
589
590def cmd_example(args):
591 """运行使用示例"""
592 if not check_environment():
593 sys.exit(1)
594
595 examples = {
596 "1": ("数据分析完整流程", example_data_analysis_flow),
597 }
598
599 if args.example_id and args.example_id in examples:
600 examples[args.example_id][1]()
601 else:
602 print("小浣熊数据分析 API 示例")
603 for k, (desc, _) in examples.items():
604 print(f" {k} - {desc}")
605 print("\n运行全部示例...")
606 for _, fn in examples.values():
607 fn()
608 print()
609
610
611# ================================================================

Callers 1

mainFunction · 0.85

Calls 1

check_environmentFunction · 0.85

Tested by

no test coverage detected