Skip to main content

add-cli-argument

Add or change a ModelExpress client CLI argument or environment variable. Use whenever touching ClientArgs, ClientConfig::load(), the Cli struct, or envs.rs/envs.py.

소스 정보

저장소
ai-dynamo/modelexpress
최근 소스 활동
2026년 9월 4일 20:06
감지된 SKILL.md 언어
영어
스타
179
포크
92

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
add-cli-argument
description
Add or change a ModelExpress client CLI argument or environment variable. Use whenever touching ClientArgs, ClientConfig::load(), the Cli struct, or envs.rs/envs.py.
# Adding CLI Arguments Client CLI arguments are defined in a shared struct to avoid duplication: 1. **Add to `ClientArgs`** in `modelexpress_common/src/client_config.rs` - Single source of truth for shared arguments - Register the variable name in `modelexpress_common/src/envs.rs` and reference the constant: `#[arg(long, env = crate::envs::MODEL_EXPRESS_...)]` (never a bare string literal, so the CLI and the `envs` getters cannot drift). All env-var names live in `modelexpress_common/src/envs.rs` (Rust) and `modelexpress/envs.py` (Python). - Do NOT use `-v` short flag (reserved for CLI's verbose) 2. **Update `ClientConfig::load()`** in the same file - Add override logic in the "APPLY CLI ARGUMENT OVERRIDES" section 3. **Do NOT duplicate in `Cli`** (`modelexpress_client/src/bin/modules/args.rs`) - `Cli` embeds `ClientArgs` via `#[command(flatten)]` - Only add CLI-specific arguments there (e.g., `--format`, `--verbose`) 4. **Add tests** in the `tests` module of `client_config.rs`
GitHub에서 보기