MCPcopy
hub / github.com/MaaEnd/MaaEnd / configure_token

Function configure_token

tools/setup_workspace.py:122–130  ·  view source on GitHub ↗

配置 GitHub Token,输出检测结果

()

Source from the content-addressed store, hash-verified

120
121
122def configure_token() -> None:
123 """配置 GitHub Token,输出检测结果"""
124 token = os.environ.get("GITHUB_TOKEN") or os.environ.get("GH_TOKEN")
125 if token:
126 print(Console.ok(t("inf_github_token_configured")))
127 else:
128 print(Console.warn(t("wrn_github_token_not_configured")))
129 print(Console.info(t("inf_github_token_hint")))
130 print("-" * 40)
131
132
133def run_command(

Callers 1

mainFunction · 0.85

Calls 4

okMethod · 0.80
warnMethod · 0.80
infoMethod · 0.80
tFunction · 0.70

Tested by

no test coverage detected