diff --git a/ui/cli/README.md b/ui/cli/README.md index 407332c..8b1d2d3 100644 --- a/ui/cli/README.md +++ b/ui/cli/README.md @@ -18,7 +18,7 @@ struct Cli { #[derive(Subcommand)] enum Commands { - Sync { slug: Option }, + Fetch, Status, } diff --git a/ui/tui/src/investigations/mod.rs b/ui/tui/src/investigations/mod.rs index ca64588..25764c4 100644 --- a/ui/tui/src/investigations/mod.rs +++ b/ui/tui/src/investigations/mod.rs @@ -33,7 +33,7 @@ pub(crate) enum WorktreeSpec { /// `project` is the directory name under `~/.hub/repos/`. Ephemeral { project: String }, /// Use the process's current directory (MediaBlocked, last-resort fallback). - #[allow(dead_code)] + #[cfg(feature = "private")] CurrentDir, } @@ -224,6 +224,7 @@ async fn resolve_worktree( ); Ok((worktree, Some(cleanup))) } + #[cfg(feature = "private")] WorktreeSpec::CurrentDir => { let cwd = std::env::current_dir().context("Cannot determine working directory")?; Ok((cwd, None))