Download codex-rs/config-schema/src/main.rs from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 651 Bytes
-
https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/config-schema/src/main.rs
- Command line
-
hf download hf://SaylorTwift/codex/codex-rs/config-schema/src/main.rs
-
curl -L -o main.rs https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/config-schema/src/main.rs
651 Bytes
| //! Generates the canonical config schema fixture for development and releases. | |
| use anyhow::Result; | |
| use clap::Parser; | |
| use std::path::PathBuf; | |
| /// Generate the JSON Schema for `config.toml` and write it to `config.schema.json`. | |
| struct Args { | |
| out: Option<PathBuf>, | |
| } | |
| fn main() -> Result<()> { | |
| let args = Args::parse(); | |
| let out_path = args.out.unwrap_or_else(|| { | |
| PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../core/config.schema.json") | |
| }); | |
| codex_config::schema::write_config_schema(&out_path)?; | |
| Ok(()) | |
| } | |