From 6588fe5d7e126a891670ec3f35e7b824681c0c05 Mon Sep 17 00:00:00 2001 From: OpenWaygate <27287694+OpenWaygate@users.noreply.github.com> Date: Sun, 21 Jun 2026 01:39:55 +0800 Subject: [PATCH] :pencil2: Capitalize Base64 and JSON in descriptions --- README.md | 8 ++++---- README_zh.md | 8 ++++---- cmd/auth.go | 4 ++-- cmd/root.go | 4 ++-- internal/tools/skillgen/setup.md | 12 ++++++------ pkg/auth/service.go | 4 ++-- pkg/auth/service_test.go | 2 +- server.json | 8 ++++---- skills/youtube/references/setup.md | 12 ++++++------ 9 files changed, 31 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index b98498d..e0d5178 100644 --- a/README.md +++ b/README.md @@ -88,8 +88,8 @@ By default, `yutu` will read `client_secret.json` and `youtube.token.json` from | Variable | Description | Default | |--------------------|----------------------------------------------|---------------------------| -| `YUTU_CREDENTIAL` | Path, base64, or JSON of OAuth client secret | `client_secret.json` | -| `YUTU_CACHE_TOKEN` | Path, base64, or JSON of cached OAuth token | `youtube.token.json` | +| `YUTU_CREDENTIAL` | Path, Base64, or JSON of OAuth client secret | `client_secret.json` | +| `YUTU_CACHE_TOKEN` | Path, Base64, or JSON of cached OAuth token | `youtube.token.json` | | `YUTU_ROOT` | Root directory for file resolution | Current working directory | | `YUTU_LOG_LEVEL` | Log level: `DEBUG`, `INFO`, `WARN`, `ERROR` | `INFO` | @@ -317,8 +317,8 @@ See [skills/youtube/SKILL.md](skills/youtube/SKILL.md) for the full list of supp yutu is a fully functional MCP server and CLI for YouTube, which can manipulate almost all YouTube resources. Environment variables: - YUTU_CREDENTIAL Path/base64/JSON of OAuth client secret (default: client_secret.json) - YUTU_CACHE_TOKEN Path/base64/JSON of cached OAuth token (default: youtube.token.json) + YUTU_CREDENTIAL Path/Base64/JSON of OAuth client secret (default: client_secret.json) + YUTU_CACHE_TOKEN Path/Base64/JSON of cached OAuth token (default: youtube.token.json) YUTU_ROOT Root directory for file resolution (default: current working directory) YUTU_LOG_LEVEL Log level: DEBUG, INFO, WARN, ERROR (default: INFO) diff --git a/README_zh.md b/README_zh.md index dee9d4c..43f13c0 100644 --- a/README_zh.md +++ b/README_zh.md @@ -98,8 +98,8 @@ Hunt](https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=11 | 变量 | 描述 | 默认值 | |--------------------|------------------------------------|----------------------| -| `YUTU_CREDENTIAL` | OAuth 客户端密钥的路径、base64 或 JSON | `client_secret.json` | -| `YUTU_CACHE_TOKEN` | 缓存的 OAuth 令牌的路径、base64 或 JSON | `youtube.token.json` | +| `YUTU_CREDENTIAL` | OAuth 客户端密钥的路径、Base64 或 JSON | `client_secret.json` | +| `YUTU_CACHE_TOKEN` | 缓存的 OAuth 令牌的路径、Base64 或 JSON | `youtube.token.json` | | `YUTU_ROOT` | 文件解析的根目录 | 当前工作目录 | | `YUTU_LOG_LEVEL` | 日志级别:`DEBUG`、`INFO`、`WARN`、`ERROR` | `INFO` | @@ -326,8 +326,8 @@ yutu 有两个可用的 GitHub Action,一个是通用 action,另一个专用 yutu is a fully functional MCP server and CLI for YouTube, which can manipulate almost all YouTube resources. Environment variables: - YUTU_CREDENTIAL Path/base64/JSON of OAuth client secret (default: client_secret.json) - YUTU_CACHE_TOKEN Path/base64/JSON of cached OAuth token (default: youtube.token.json) + YUTU_CREDENTIAL Path/Base64/JSON of OAuth client secret (default: client_secret.json) + YUTU_CACHE_TOKEN Path/Base64/JSON of cached OAuth token (default: youtube.token.json) YUTU_ROOT Root directory for file resolution (default: current working directory) YUTU_LOG_LEVEL Log level: DEBUG, INFO, WARN, ERROR (default: INFO) diff --git a/cmd/auth.go b/cmd/auth.go index dfd8470..1697085 100644 --- a/cmd/auth.go +++ b/cmd/auth.go @@ -16,8 +16,8 @@ import ( const ( authShort = "Authenticate with YouTube APIs" authLong = "Authenticate with YouTube APIs to access and manage YouTube resources." - credUsage = "Path to client secret file, or base64 encoded string, or json string (env: YUTU_CREDENTIAL)" - cacheUsage = "Path to token cache file, or base64 encoded string, or json string (env: YUTU_CACHE_TOKEN)" + credUsage = "Path to client secret file, or Base64 encoded string, or JSON string (env: YUTU_CREDENTIAL)" + cacheUsage = "Path to token cache file, or Base64 encoded string, or JSON string (env: YUTU_CACHE_TOKEN)" ) var ( diff --git a/cmd/root.go b/cmd/root.go index 8e5f038..5a20112 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -14,8 +14,8 @@ const ( long = `yutu is a CLI, MCP server, and AI agent for YouTube that can automate almost all YouTube workflows. Environment variables: - YUTU_CREDENTIAL Path/base64/JSON of OAuth client secret (default: client_secret.json) - YUTU_CACHE_TOKEN Path/base64/JSON of cached OAuth token (default: youtube.token.json) + YUTU_CREDENTIAL Path/Base64/JSON of OAuth client secret (default: client_secret.json) + YUTU_CACHE_TOKEN Path/Base64/JSON of cached OAuth token (default: youtube.token.json) YUTU_ROOT Root directory for file resolution (default: current working directory) YUTU_LOG_LEVEL Log level: DEBUG, INFO, WARN, ERROR (default: INFO)` ) diff --git a/internal/tools/skillgen/setup.md b/internal/tools/skillgen/setup.md index 7b26125..dd0dacf 100644 --- a/internal/tools/skillgen/setup.md +++ b/internal/tools/skillgen/setup.md @@ -54,11 +54,11 @@ Download a prebuilt binary from the [releases page](https://github.com/eat-pray- ## Environment Variables -| Variable | Description | Default | -|----------|-------------|---------| -| `YUTU_CREDENTIAL` | Path, base64, or JSON of OAuth client secret | `client_secret.json` | -| `YUTU_CACHE_TOKEN` | Path, base64, or JSON of cached OAuth token | `youtube.token.json` | -| `YUTU_ROOT` | Root directory for file resolution | Current working directory | -| `YUTU_LOG_LEVEL` | Log level: `DEBUG`, `INFO`, `WARN`, `ERROR` | `INFO` | +| Variable | Description | Default | +|----------|----------------------------------------------|---------| +| `YUTU_CREDENTIAL` | Path, Base64, or JSON of OAuth client secret | `client_secret.json` | +| `YUTU_CACHE_TOKEN` | Path, Base64, or JSON of cached OAuth token | `youtube.token.json` | +| `YUTU_ROOT` | Root directory for file resolution | Current working directory | +| `YUTU_LOG_LEVEL` | Log level: `DEBUG`, `INFO`, `WARN`, `ERROR` | `INFO` | For more details, see the [yutu README](https://github.com/eat-pray-ai/yutu#readme). diff --git a/pkg/auth/service.go b/pkg/auth/service.go index 4baab60..a27e981 100644 --- a/pkg/auth/service.go +++ b/pkg/auth/service.go @@ -83,7 +83,7 @@ func WithCredential(cred string, fsys fs.FS) Option { cred = s.credFile } // 1. cred is a file path - // 2. cred is a base64 encoded string + // 2. cred is a Base64 encoded string // 3. cred is a JSON string absCred, _ := filepath.Abs(cred) relCred, _ := filepath.Rel(*pkg.RootDir, absCred) @@ -124,7 +124,7 @@ func WithCacheToken(token string, fsys fs.FS) Option { } // 1. token is a file path - // 2. token is a base64 encoded string + // 2. token is a Base64 encoded string // 3. token is a JSON string absToken, _ := filepath.Abs(token) relToken, _ := filepath.Rel(*pkg.RootDir, absToken) diff --git a/pkg/auth/service_test.go b/pkg/auth/service_test.go index bf3c074..0a5902c 100644 --- a/pkg/auth/service_test.go +++ b/pkg/auth/service_test.go @@ -64,7 +64,7 @@ func TestNewY2BService(t *testing.T) { }, }, { - name: "with all options - base64", + name: "with all options - Base64", args: args{ opts: []Option{ WithCredential(credB64, mockFS), diff --git a/server.json b/server.json index dcf250e..24eeaab 100644 --- a/server.json +++ b/server.json @@ -40,14 +40,14 @@ ], "environmentVariables": [ { - "description": "GCP project credential for yutu, base64 encoded JSON or path to JSON file", + "description": "GCP project credential for yutu, Base64 encoded JSON or path to JSON file", "isRequired": true, "format": "string", "isSecret": true, "name": "YUTU_CREDENTIAL" }, { - "description": "YouTube authentication token, base64 encoded JSON or path to JSON file", + "description": "YouTube authentication token, Base64 encoded JSON or path to JSON file", "isRequired": true, "format": "string", "isSecret": true, @@ -106,14 +106,14 @@ ], "environmentVariables": [ { - "description": "GCP project credential for yutu, base64 encoded JSON or path to JSON file", + "description": "GCP project credential for yutu, Base64 encoded JSON or path to JSON file", "isRequired": true, "format": "string", "isSecret": true, "name": "YUTU_CREDENTIAL" }, { - "description": "YouTube authentication token, base64 encoded JSON or path to JSON file", + "description": "YouTube authentication token, Base64 encoded JSON or path to JSON file", "isRequired": true, "format": "string", "isSecret": true, diff --git a/skills/youtube/references/setup.md b/skills/youtube/references/setup.md index 7b26125..dd0dacf 100644 --- a/skills/youtube/references/setup.md +++ b/skills/youtube/references/setup.md @@ -54,11 +54,11 @@ Download a prebuilt binary from the [releases page](https://github.com/eat-pray- ## Environment Variables -| Variable | Description | Default | -|----------|-------------|---------| -| `YUTU_CREDENTIAL` | Path, base64, or JSON of OAuth client secret | `client_secret.json` | -| `YUTU_CACHE_TOKEN` | Path, base64, or JSON of cached OAuth token | `youtube.token.json` | -| `YUTU_ROOT` | Root directory for file resolution | Current working directory | -| `YUTU_LOG_LEVEL` | Log level: `DEBUG`, `INFO`, `WARN`, `ERROR` | `INFO` | +| Variable | Description | Default | +|----------|----------------------------------------------|---------| +| `YUTU_CREDENTIAL` | Path, Base64, or JSON of OAuth client secret | `client_secret.json` | +| `YUTU_CACHE_TOKEN` | Path, Base64, or JSON of cached OAuth token | `youtube.token.json` | +| `YUTU_ROOT` | Root directory for file resolution | Current working directory | +| `YUTU_LOG_LEVEL` | Log level: `DEBUG`, `INFO`, `WARN`, `ERROR` | `INFO` | For more details, see the [yutu README](https://github.com/eat-pray-ai/yutu#readme).