No description
This repository has been archived on 2026-07-12. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Merith-TK c37bc2e7b8 fix: remove hardcoded binary map from res env
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.
2026-06-15 07:59:55 -07:00
.opencode chore: sync residual agent and skill configs 2026-06-14 03:09:01 +01:00
cmd/res fix: remove hardcoded binary map from res env 2026-06-15 07:59:55 -07:00
.gitignore chore(res): ignore built res binary 2026-06-13 16:40:12 +01:00
go.mod init: residual/res — dispatcher binary with res env subcommand 2026-04-15 19:12:12 -07:00
LICENSE chore: add MIT license 2026-06-15 06:21:27 -07:00
README docs(res): update README and add opencode harness 2026-06-13 16:23:20 +01:00

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