Removes the profile from the configuration file.
(cx: &Context)
| 207 | |
| 208 | /// Removes the profile from the configuration file. |
| 209 | pub 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. |
| 219 | pub struct ConfigGetArgs<'a> { |
nothing calls this directly
no test coverage detected