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

Function show

src/cli/profile.rs:76–101  ·  view source on GitHub ↗
(config_name: Option<&str>, profile_name: Option<&str>)

Source from the content-addressed store, hash-verified

74}
75
76fn show(config_name: Option<&str>, profile_name: Option<&str>) -> Result<()> {
77 let config = CodSpeedConfig::load_with_profile(
78 config_name,
79 profile_name,
80 ConfigOverrides::default(),
81 false,
82 )?;
83
84 info!(
85 "{} ({})",
86 style("Profile").bold(),
87 config.selected_profile_name()
88 );
89 info!(" api url: {}", config.api_url);
90 info!(" upload url: {}", config.upload_url);
91 info!(
92 " authenticated: {}",
93 if config.auth.token.is_some() {
94 "yes"
95 } else {
96 "no"
97 }
98 );
99
100 Ok(())
101}
102
103fn set(
104 config_name: Option<&str>,

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected