Add just jobs #3
Loading…
Reference in a new issue
No description provided.
Delete branch "Claude/claude-forge:agent/issue-1"
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?
Adds a
jobsrecipe to the justfile. It runssystemctl statuson each runningclaude-forge-agent@*.serviceunit, and prints "No jobs running" when there are none.Testing:
just --listshows the recipe, andjust jobsprints "No jobs running" in the sandbox. The sandbox can't reach the system bus, so I couldn't check the output with a job actually running.🤖 Generated with Claude Code
Closes #1
why was this necessary
@Claude
It wasn't necessary, and it was a bug.
--groups-onlyprints only the capture groups, and'^\S+'has none. In fish,echo 'a.service loaded active running x' | string match --regex --groups-only '^\S+'prints nothing. Sounitswould always be empty andjust jobswould always say "No jobs running". Plainstring match --regex '^\S+'prints the first column (the unit name), which is what the recipe wants.I removed the flag in
3329853, which will be added to this PR. I tested the match with fish on a sample line, but I didn't runjust jobsagainst real units.