{"record":{"id":"49925f78d703c24b","repo":"wasmerio/wasmer","slug":"no-secret-name-given-provide-one-as-a-positional-49925f","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/reveal.rs","lineNumber":55,"sourceCode":"\n    /// Reveal all the secrets related to an app.\n    #[clap(long, conflicts_with = \"name\")]\n    pub all: bool,\n\n    /* --- Parameters --- */\n    /// The name of the secret to get the value of.\n    #[clap(name = \"name\")]\n    pub secret_name: Option<String>,\n}\n\nimpl CmdAppSecretsReveal {\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\n#[async_trait::async_trait]\nimpl AsyncCliCommand for CmdAppSecretsReveal {\n    type Output = ();\n\n    async fn run_async(self) -> Result<Self::Output, anyhow::Error> {\n        let client = self.env.client()?;\n        let app_id = super::utils::get_app_id(\n            &client,\n            self.app_id.app.as_ref(),","sourceCodeStart":37,"sourceCodeEnd":73,"githubUrl":"https://github.com/wasmerio/wasmer/blob/8c4b9ee9d33fb2068863fbb3d328683e7e6ff7f5/lib/cli/src/commands/app/secrets/reveal.rs#L37-L73","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/reveal.rs:55 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"}