{"record":{"id":"f0c5682fcbb3f20c","repo":"wasmerio/wasmer","slug":"no-secret-name-given-provide-one-as-a-positional","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/create.rs","lineNumber":64,"sourceCode":"\n    /* --- Parameters --- */\n    /// The name of the secret to create.\n    #[clap(name = \"name\")]\n    pub secret_name: Option<String>,\n\n    /// The value of the secret to create.\n    #[clap(name = \"value\")]\n    pub secret_value: Option<String>,\n}\n\nimpl CmdAppSecretsCreate {\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    fn get_secret_value(&self) -> anyhow::Result<String> {\n        if let Some(value) = &self.secret_value {\n            return Ok(value.clone());\n        }\n\n        if self.non_interactive {\n            anyhow::bail!(\"No secret value given. Provide one as a positional argument.\")\n        } else {\n            let theme = ColorfulTheme::default();\n            Ok(dialoguer::Input::with_theme(&theme)","sourceCodeStart":46,"sourceCodeEnd":82,"githubUrl":"https://github.com/wasmerio/wasmer/blob/8c4b9ee9d33fb2068863fbb3d328683e7e6ff7f5/lib/cli/src/commands/app/secrets/create.rs#L46-L82","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/create.rs:64 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"}