Every built-in is a command typed under its own name (FZTA-24) #209
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
queue
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/fzt-automate!209
Loading…
Reference in a new issue
No description provided.
Delete branch "fzta-24-typeable-builtins"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Work package: https://openproject.home.romaine.life/wp/FZTA-24
Needs: https://openproject.home.romaine.life/wp/AHT-234 (at-update's
commandsfield) delivered to every PC first. Until then at-update rejects this at-app.json as an unknown field, so this PR is held.Nelson's requirement: nothing is reachable only through the at menu. Every built-in must be typeable in a shell under its own name, and that must be enforced.
Added:
at-app.jsonlists every built-in undercommands. at-update installs each name as a hard link tofzt-automate.exeincurrent, which is on PATH.mainruns the built-in named by the program's own name, soresume-claude.exeisfzt-automate resume-claude.TestEveryBuiltinIsACommandfails when the built-ins and that list differ. A new built-in can't ship without its command.windows,programs,reboot, …) typed at a prompt opens its folder as a picker and runs the pick, as the menu does. Piped, it prints rows as before.Renamed: the
fzt-pickerbuilt-in is nowrestart-fzt-picker. As a command, the old name would collide on PATH with the fzt-picker tool itself. The at menu's "fzt-picker" entry runs by its name, so it gets an explicitrestart-fzt-pickeraction throughmenu-saveonce this release is installed.Unchanged:
fzt-automate <built-in>and every menu entry work as before.Tested: unit tests (the list check, program-name parsing). On this PC with test copies: a hard-linked
resume-claude.exeran the resume-claude built-in (usage error for bad arguments),windows.exe | …printed rows, andwindows.exetyped in a PowerShell tab on a throwaway tmux server opened the window picker, which Esc closed with exit 130.🤖 Generated with Claude Code
merge-queue stopped this at
a94c16d: CI failed: Suite go / check-test-linux (pull_request). Push a fix. A failure fixed on main lands once thequeuelabel is removed and added again: the queue merges main in and CI runs on the new head.