Resolver-style install front door across package managers. Resolves, explains and asks; never guesses silently.
Table of Contents
Part of the FreeCLI command-namespace work: the shell finds commands in a hierarchical, task-shaped namespace instead of searching PATH.
Design seed: project-plans seed. Concept page: Command namespace and context requests.
Status: scaffold only.
v0 is read-only: it searches and never installs.
install # help
install search ripgrep # winget, scoop and npm
install search ripgrep --manager winget,npm
install --json search ripgrep
install managers # which managers were foundThe command is literally install (DECIDED). Ryan’s rationale: "I wanted the command to literally be 'install' not 'osh-install' otherwise it breaks the illusion of a seamless unified interface."
-
Namespace shells:
installis the rootinstallnode, and coreutils/BSDinstall(1)is registered atlegacy/install.installresolves to the resolver. -
Plain PATH shells (Unix):
install(1)already exists. Packaging must never overwrite/usr/bin/install. Put the resolver ahead of it on your own PATH only (for example~/.local/bin), or use a shell alias or function. Don’t change the system PATH. -
Build scripts: scripts call
install(1)with its file-copy flags (-m,-D,-d,-o,-g, …), and they must keep working. The resolver detects install(1)-style arguments (any install(1) option, or an existing source file followed by a destination) and hands them unchanged to the real install(1) from a fixed system location (/usr/bin/install,/bin/install, or Homebrewginstall), never by searching PATH. Its exit status comes back unchanged. This passthrough is PROVISIONAL. Resolver commands (search,managers,help) and flags always win. -
Windows: there is no
installcommand, so there is no clash. install(1)-style arguments there are a usage error (exit 2).
Exit codes: 0 results found, 1 no results, 2 usage error. A manager that isn’t installed is skipped and reported.
Build and test with LDC + dub: dub test, dub build.
-
command-namespace - spec, schemas, registry library
-
name - inspection and audit (
name which,name conflicts) -
install - resolver front door
-
versions - version manager
-
isolate - isolation levels front door
MIT - see LICENSE.
FreeCLI - openshell@devcentr.org