Skip to content

Add bananasplit as an alias for the banana command - #47

Merged
Diogomartf merged 2 commits into
mainfrom
bananasplit-alias
Oct 27, 2026
Merged

Diogomartf merged 2 commits into
mainfrom
bananasplit-alias

Conversation

@Diogomartf

Copy link
Copy Markdown
Contributor

Lets the CLI run as bananasplit as well as banana.

  • npm/Bun: package.json registers a second bananasplit bin.
  • install.sh: creates a relative bananasplit -> banana symlink next to the binary. banana upgrade re-runs the installer, so existing installs get the alias on their next upgrade.
  • install.ps1: writes a bananasplit.cmd shim. Symlinks need elevation, and a hard link would point at the old binary after an upgrade, because upgrade replaces banana.exe. The Windows upgrade path in src/update.ts now moves the shim out of the staging dir too.
  • uninstall: removes the alias along with the binary (symlink on POSIX, .cmd on Windows).
  • CI: the installer jobs also run bananasplit --help.
  • README: one line saying both names work.

Tested: bun test (305 pass) and bun run typecheck. I also built a compiled binary and ran it through the symlink. --help works, and execPath resolves to the real banana file, so upgrade and uninstall act on the right file. The Windows shim has not been run on Windows; the release workflow's installer job will be the first to exercise it.

The npm package registers both bins. install.sh links bananasplit to the
binary; install.ps1 writes a bananasplit.cmd shim, which upgrade carries over
from its staging directory. Uninstall removes the alias with the binary.
@greptile-apps

greptile-apps Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; both previous findings are fixed.

Summary

Adds bananasplit as another name for banana across package and standalone installs.

  • People can run the CLI as banana or bananasplit.
  • Standalone upgrades and uninstall keep the bananasplit alias in sync.
  • Installer checks run on relevant pull requests without publishing releases.

Both previous findings are fixed. No new actionable issues were found.

Reviews (2) · Last reviewed commit: "Only uninstall a bananasplit alias the i..." · Reviewed by Greptile

Comment thread src/uninstall.ts Resolved
Comment thread .github/workflows/release.yml Resolved
…s on PRs

uninstall now checks that bananasplit is a symlink to this binary, or that
bananasplit.cmd holds exactly the installer's shim, before removing it.

The release workflow also runs on pull requests that touch the installers,
update.ts or uninstall.ts, with the version check and publish jobs limited to
tag pushes. The Windows installer test checks --help's exit code and output
instead of relying on Select-String, which passes on no match.

AGENTS.md documents how each install path provides the alias.
@Diogomartf
Diogomartf merged commit f7d175d into main Oct 27, 2026
14 checks passed
@Diogomartf
Diogomartf deleted the bananasplit-alias branch October 27, 2026 17:29
@Diogomartf
Diogomartf restored the bananasplit-alias branch October 27, 2026 17:30
@Diogomartf
Diogomartf deleted the bananasplit-alias branch October 27, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant