✏️ Capitalize Base64 and JSON in descriptions

This commit is contained in:
OpenWaygate committed 2026-06-21 01:49:46 +08:00
1 parent 4cb0fa4f76
commit 6588fe5d7e
9 files changed
+31 -31

No files matched your search

+4 -4
View File
@@ -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)
+4 -4
View File
@@ -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)
+2 -2
View File
@@ -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 (
+2 -2
View File
@@ -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)`
)
+6 -6
View File
@@ -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).
+2 -2
View File
@@ -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)
+1 -1
View File
@@ -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),
+4 -4
View File
@@ -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,
+6 -6
View File
@@ -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).