No description
- Go 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
The defaultEnvMap hardcoded knowledge of res-edit, res-console, res-login, and res-sh, violating the pure-dispatcher design rule. Replace with discoverAliases() which dynamically scans PATH for res-* binaries and derives aliases by stripping the res- prefix. Aliases that would shadow existing commands (e.g. sh) are skipped. No env var mappings (EDITOR, SHELL) are emitted — those require semantic knowledge of each binary. A convention-based approach for env var mappings is planned. |
||
| .opencode | ||
| cmd/res | ||
| .gitignore | ||
| go.mod | ||
| LICENSE | ||
| README | ||
residual/res
============
dispatcher binary for the residual toolsuite.
works like git: unknown subcommands are resolved as res-<name> in PATH.
res <subcommand> [args...]
built-in subcommands:
env print shell environment setup. source with: eval "$(res env)"
sets RES_CONFIG, RES_DATA, RES_CACHE and short aliases.
flags: --bash (default), --sh, --zsh, --fish
help show usage
version print version
external subcommands (looked up as res-<name> in PATH):
sh res-sh
edit res-edit
console res-console
login res-login
init res-init
setup (add to shell rc):
eval "$(res env)"
build:
go build ./cmd/res
module: git.merith.xyz/residual/res
requires: nothing