feat: add tui feature flag to gate the tui command (#9428)

Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com>
This commit is contained in:
Rodolfo Olivieri
2026-05-28 11:12:31 -03:00
committed by GitHub
parent d10d009b97
commit 2116f88908
3 changed files with 7 additions and 1 deletions
+3 -1
View File
@@ -73,6 +73,7 @@ winapi = { workspace = true }
default = [
"code-mode",
"local-inference",
"tui",
"aws-providers",
"telemetry",
"nostr",
@@ -90,8 +91,9 @@ telemetry = ["goose/telemetry"]
nostr = ["goose/nostr"]
otel = ["goose/otel"]
system-keyring = ["goose/system-keyring"]
tui = []
update = ["dep:sigstore-verify"]
portable-default = ["rustls-tls", "aws-providers", "telemetry", "otel"]
portable-default = ["rustls-tls", "aws-providers", "telemetry", "otel", "tui"]
# disables the update command
disable-update = []
rustls-tls = [
+3
View File
@@ -986,6 +986,7 @@ enum Command {
},
/// Launch the goose terminal UI (TUI)
#[cfg(feature = "tui")]
#[command(
about = "Launch the goose terminal UI",
long_about = "Launch the goose terminal UI (the @aaif/goose npm package).\n\
@@ -1291,6 +1292,7 @@ fn get_command_name(command: &Option<Command>) -> &'static str {
Some(Command::Skills { .. }) => "skills",
Some(Command::Plugin { .. }) => "plugin",
Some(Command::Term { .. }) => "term",
#[cfg(feature = "tui")]
Some(Command::Tui { .. }) => "tui",
#[cfg(feature = "local-inference")]
Some(Command::LocalModels { .. }) => "local-models",
@@ -2154,6 +2156,7 @@ pub async fn cli() -> anyhow::Result<()> {
Some(Command::Skills { command }) => handle_skills_subcommand(command).await,
Some(Command::Plugin { command }) => handle_plugin_subcommand(command),
Some(Command::Term { command }) => handle_term_subcommand(command).await,
#[cfg(feature = "tui")]
Some(Command::Tui { args }) => crate::commands::tui::handle_tui(args),
#[cfg(feature = "local-inference")]
Some(Command::LocalModels { command }) => handle_local_models_command(command).await,
+1
View File
@@ -10,6 +10,7 @@ pub mod schedule;
pub mod session;
pub mod skills;
pub mod term;
#[cfg(feature = "tui")]
pub mod tui;
#[cfg(feature = "update")]
pub mod update;