拆分代码;约束cli命令
This commit is contained in:
@@ -13,6 +13,7 @@ import requests
|
||||
import typer
|
||||
|
||||
SCHEMA_VERSION = "tjwater-cli/v1"
|
||||
CLI_NAME = "tjwater-cli"
|
||||
DEFAULT_TIMEOUT = 60
|
||||
DEFAULT_SERVER = "http://192.168.1.114:8000"
|
||||
|
||||
@@ -180,7 +181,7 @@ def require_access_token(ctx: RuntimeContext) -> str:
|
||||
code="UNAUTHENTICATED",
|
||||
message="missing access token for agent context",
|
||||
exit_code=3,
|
||||
next_commands=["tjwater <command> --auth-context /path/to/auth-context.json"],
|
||||
next_commands=["tjwater-cli <command> --auth-context /path/to/auth-context.json"],
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user