feat: add --help guides to the .install and .uninstall REPL commands
.install --help and .uninstall --help print a usage guide covering the owner/repo shorthand, --git-host, --filter, --force, ref pinning, and the bundle lifecycle; both usage error lines now point at --help. Tab completion offers --help for both commands and --git-host on the first .install argument, and the unified install parser accepts flags in any argument position so completed flags work wherever they are inserted. The empty .list bundles message now shows the REPL install form alongside the CLI one.
This commit is contained in:
@@ -626,7 +626,10 @@ pub fn list_installed_bundles() -> Result<()> {
|
||||
let store = BundleStore::load()?;
|
||||
let rows = bundle_list_rows(&store, &paths::config_dir());
|
||||
if rows.is_empty() {
|
||||
println!("No bundles installed. Install one with `coyote --install <git-url>`.");
|
||||
println!(
|
||||
"No bundles installed. Install one with `coyote --install <git-url|owner/repo>` \
|
||||
or, from the REPL, `.install <git-url|owner/repo>` (see `.install --help`)."
|
||||
);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user