Skip to content

Commit 65c3bb1

Browse files
committed
Revert "Add a flag and write a wrapper script to redirect all old q calls to kirocli with a warning"
This reverts commit 97f5b91.
1 parent 0752aa1 commit 65c3bb1

File tree

3 files changed

+1
-34
lines changed

3 files changed

+1
-34
lines changed

crates/fig_install/src/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pub async fn uninstall(components: InstallComponents, ctx: Arc<Context>) -> Resu
7272
// let folders = [directories::home_local_bin()?, Path::new("/usr/local/bin").into()];
7373
let folders = [directories::home_local_bin()?];
7474

75-
let mut all_binary_names = vec![CLI_BINARY_NAME, CHAT_BINARY_NAME, PTY_BINARY_NAME, "q"];
75+
let mut all_binary_names = vec![CLI_BINARY_NAME, CHAT_BINARY_NAME, PTY_BINARY_NAME];
7676
all_binary_names.extend(OLD_CLI_BINARY_NAMES);
7777
all_binary_names.extend(OLD_PTY_BINARY_NAMES);
7878

crates/q_cli/src/cli/mod.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -292,18 +292,10 @@ pub struct Cli {
292292
/// Print help for all subcommands
293293
#[arg(long)]
294294
help_all: bool,
295-
/// Show legacy warning for q command
296-
#[arg(long, hide = true)]
297-
show_legacy_warning: bool,
298295
}
299296

300297
impl Cli {
301298
pub async fn execute(self) -> Result<ExitCode> {
302-
// Show legacy warning if flag is set
303-
if self.show_legacy_warning {
304-
eprintln!("Warn: Q CLI is now Kiro CLI and should be invoked as kiro-cli rather than q");
305-
}
306-
307299
// Initialize our logger and keep around the guard so logging can perform as expected.
308300
let _log_guard = initialize_logging(LogArgs {
309301
log_level: match self.verbose > 0 {

scripts/install.sh

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -318,23 +318,6 @@ create_symlink() {
318318
ln -s "$src" "$dst"
319319
}
320320

321-
# Create legacy q wrapper script
322-
create_q_wrapper() {
323-
local install_dir="$1"
324-
local wrapper_path="$install_dir/q"
325-
326-
# Remove existing q command if it exists
327-
rm -f "$wrapper_path"
328-
329-
# Create wrapper script
330-
cat > "$wrapper_path" << EOF
331-
#!/bin/sh
332-
"$install_dir/kiro-cli" --show-legacy-warning "\$@"
333-
EOF
334-
335-
chmod +x "$wrapper_path"
336-
}
337-
338321
# Install on macOS
339322
install_macos() {
340323
local dmg_path="$1"
@@ -477,14 +460,6 @@ main() {
477460
install_linux "$downloaded_file"
478461
fi
479462

480-
# Create legacy q wrapper script
481-
log "Creating legacy q wrapper..."
482-
if [[ "$os" == "macos" ]]; then
483-
create_q_wrapper "$HOME/.local/bin"
484-
else
485-
create_q_wrapper "$LINUX_INSTALL_DIR"
486-
fi
487-
488463
SUCCESS=true
489464

490465
echo

0 commit comments

Comments
 (0)