feat(goose-cli): add feature to disable update (#5886)

Signed-off-by: Sai Karthik <kskarthik@disroot.org>
This commit is contained in:
Sai Karthik
2025-12-16 08:38:59 +05:30
committed by GitHub
parent e261e12cf0
commit 02f56a0a82
2 changed files with 8 additions and 2 deletions
+5 -2
View File
@@ -1,11 +1,14 @@
use std::process::Command;
use anyhow::Result;
use std::process::Command;
const DOWNLOAD_SCRIPT_URL: &str =
"https://github.com/block/goose/releases/download/stable/download_cli.sh";
pub fn update(canary: bool, reconfigure: bool) -> Result<()> {
if cfg!(feature = "disable-update") {
anyhow::bail!("This command is disabled");
};
// Get the download script from github
let curl_output = Command::new("curl")
.arg("-fsSL")