{"record":{"id":"ca78c42f05ba271b","repo":"wasmerio/wasmer","slug":"no-secret-name-given-provide-one-as-a-positional-ca78c4","errorCode":null,"errorMessage":"No secret name given. Provide one as a positional argument.","messagePattern":"No secret name given\\. Provide one as a positional argument\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/cli/src/commands/app/secrets/delete.rs","lineNumber":66,"sourceCode":"\n    /// Delete the secret(s) without asking for confirmation.\n    #[clap(long)]\n    pub force: bool,\n\n    /* --- Parameters --- */\n    /// The name of the secret to delete.\n    #[clap(name = \"name\")]\n    pub secret_name: Option<String>,\n}\n\nimpl CmdAppSecretsDelete {\n    fn get_secret_name(&self) -> anyhow::Result<String> {\n        if let Some(name) = &self.secret_name {\n            return Ok(name.clone());\n        }\n\n        if self.non_interactive {\n            anyhow::bail!(\"No secret name given. Provide one as a positional argument.\")\n        } else {\n            let theme = ColorfulTheme::default();\n            Ok(dialoguer::Input::with_theme(&theme)\n                .with_prompt(\"Enter the name of the secret\")\n                .interact_text()?)\n        }\n    }\n\n    async fn delete(\n        &self,\n        client: &WasmerClient,\n        app_id: &str,\n        secret_name: &str,\n    ) -> anyhow::Result<()> {\n        let secret = utils::get_secret_by_name(client, app_id, secret_name).await?;\n\n        if let Some(secret) = secret {\n            if !self.non_interactive && !self.force {","sourceCodeStart":48,"sourceCodeEnd":84,"githubUrl":"https://github.com/wasmerio/wasmer/blob/8c4b9ee9d33fb2068863fbb3d328683e7e6ff7f5/lib/cli/src/commands/app/secrets/delete.rs#L48-L84","documentation":"Error \"No secret name given. Provide one as a positional argument.\" thrown in wasmerio/wasmer.","triggerScenarios":"Thrown at lib/cli/src/commands/app/secrets/delete.rs:66 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c4b9ee9d33fb2068863fbb3d328683e7e6ff7f5","analyzedAt":"2026-09-01T23:06:31.009Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T06:17:21.866Z"}