feat: extend --list fallback to Taskfile and mise#18
Merged
Conversation
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.
dgageot
approved these changes
Jun 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
gogo --listnow delegates to a colocated foreign task file's native listing command (task --list,mise tasks ls) when nogogo.yamlis found — mirroring the existing run-time fallback so users don't need a second listing flag per tool.makehas no native listing equivalent and is intentionally skipped (the original "no gogo.yaml" error surfaces in that case).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 ./...cleangogo --listin a Taskfile-only directory shells out totask --listgogo --listin this repo still renders the gogo-native listing