MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / Cli

Class Cli

src/cli/mod.rs:46–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44#[derive(Parser, Debug)]
45#[command(version, about = "The CodSpeed CLI tool", styles = create_styles())]
46pub struct Cli {
47 /// The URL of the CodSpeed GraphQL API
48 #[arg(long, env = "CODSPEED_API_URL", global = true, hide = true)]
49 pub api_url: Option<String>,
50
51 /// The OAuth token to use for all requests
52 #[arg(long, env = "CODSPEED_OAUTH_TOKEN", global = true, hide = true)]
53 pub oauth_token: Option<String>,
54
55 /// [deprecated] Load configuration from `~/.config/codspeed/{config-name}.yaml`
56 /// instead of the default `config.yaml`. Prefer `--profile` instead.
57 #[arg(long, env = "CODSPEED_CONFIG_NAME", global = true, hide = true)]
58 #[deprecated(note = "use `--profile` / `CODSPEED_PROFILE` instead")]
59 pub config_name: Option<String>,
60
61 /// The CodSpeed profile to use
62 #[arg(long, env = "CODSPEED_PROFILE", global = true)]
63 pub profile: Option<String>,
64
65 /// Path to project configuration file (codspeed.yaml)
66 /// If provided, loads config from this path. Otherwise, searches for config files
67 /// in the current directory and upward to the git root.
68 #[arg(long, global = true)]
69 pub config: Option<PathBuf>,
70
71 /// The directory to use for caching installed tools
72 /// The runner will restore cached tools from this directory before installing them.
73 /// After successful installation, the runner will cache the installed tools to this directory.
74 /// Only supported on ubuntu and debian systems.
75 #[arg(long, env = "CODSPEED_SETUP_CACHE_DIR", global = true)]
76 pub setup_cache_dir: Option<String>,
77
78 #[command(subcommand)]
79 command: Commands,
80}
81
82#[derive(Subcommand, Debug)]
83enum Commands {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected