Skip to content

Resolve command aliases from package definitions in anvil run#2

Merged
voidreamer merged 1 commit intomainfrom
feat/command-resolution
Apr 2, 2026
Merged

Resolve command aliases from package definitions in anvil run#2
voidreamer merged 1 commit intomainfrom
feat/command-resolution

Conversation

@voidreamer
Copy link
Copy Markdown
Owner

When running anvil run pkg -- CMD, CMD is now looked up in the merged commands: map of all resolved packages. If a match is found the alias is expanded (with full env-var resolution) before execution, so anvil run python-3.11 -- python -c "..." works without a full path.

Also display the Commands section in anvil info output.

When running `anvil run pkg -- CMD`, CMD is now looked up in the merged
`commands:` map of all resolved packages. If a match is found the alias
is expanded (with full env-var resolution) before execution, so
`anvil run python-3.11 -- python -c "..."` works without a full path.

Also display the Commands section in `anvil info` output.
@voidreamer voidreamer merged commit 8b2d5d7 into main Apr 2, 2026
2 checks passed
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.

1 participant