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

Function list

src/cli/profile.rs:58–74  ·  view source on GitHub ↗
(config_name: Option<&str>)

Source from the content-addressed store, hash-verified

56}
57
58fn list(config_name: Option<&str>) -> Result<()> {
59 let config =
60 CodSpeedConfig::load_with_profile(config_name, None, ConfigOverrides::default(), true)?;
61 let active = load_shell_session_profile()?;
62
63 info!("{}", style("Profiles").bold());
64 for name in config.profiles().keys() {
65 let marker = if Some(name) == active.as_ref() {
66 "*"
67 } else {
68 " "
69 };
70 info!(" {marker} {name}");
71 }
72
73 Ok(())
74}
75
76fn show(config_name: Option<&str>, profile_name: Option<&str>) -> Result<()> {
77 let config = CodSpeedConfig::load_with_profile(

Callers 1

runFunction · 0.85

Calls 2

profilesMethod · 0.80

Tested by

no test coverage detected