Skip to content

feat: extend --list fallback to Taskfile and mise#18

Merged
dgageot merged 1 commit into
mainfrom
feat/list-foreign-tasks
Jun 29, 2026
Merged

feat: extend --list fallback to Taskfile and mise#18
dgageot merged 1 commit into
mainfrom
feat/list-foreign-tasks

Conversation

@melmennaoui

Copy link
Copy Markdown
Collaborator

Summary

  • gogo --list now delegates to a colocated foreign task file's native listing command (task --list, mise tasks ls) when no gogo.yaml is found — mirroring the existing run-time fallback so users don't need a second listing flag per tool.
  • make has no native listing equivalent and is intentionally skipped (the original "no gogo.yaml" error surfaces in that case).
  • Same cwd-only security stance as tryForeignFallback: ancestor directories are never inspected.

Test plan

  • go test ./... passes (new tests cover the task/mise list paths, the Makefile skip, and the gogo.yaml-wins case)
  • golangci-lint run ./... clean
  • Manual smoke: gogo --list in a Taskfile-only directory shells out to task --list
  • Manual smoke: gogo --list in this repo still renders the gogo-native listing

When no gogo.yaml is found, `gogo --list` now delegates to a colocated
foreign task file's native listing command (`task --list`,
`mise tasks ls`), mirroring the existing run-time fallback. `make` has
no native listing equivalent and is skipped.
@melmennaoui
melmennaoui requested a review from dgageot June 29, 2026 10:25
@dgageot
dgageot merged commit db60277 into main Jun 29, 2026
4 checks passed
@dgageot
dgageot deleted the feat/list-foreign-tasks branch June 29, 2026 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants