MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / remove

Function remove

src/mz/src/command/profile.rs:209–216  ·  view source on GitHub ↗

Removes the profile from the configuration file.

(cx: &Context)

Source from the content-addressed store, hash-verified

207
208/// Removes the profile from the configuration file.
209pub async fn remove(cx: &Context) -> Result<(), Error> {
210 cx.config_file()
211 .remove_profile(
212 &cx.get_global_profile()
213 .unwrap_or_else(|| cx.config_file().profile().to_string()),
214 )
215 .await
216}
217
218/// Represents the args to retrieve a profile configuration value.
219pub struct ConfigGetArgs<'a> {

Callers

nothing calls this directly

Calls 5

remove_profileMethod · 0.80
config_fileMethod · 0.80
get_global_profileMethod · 0.80
to_stringMethod · 0.45
profileMethod · 0.45

Tested by

no test coverage detected