Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for *args to AliasMap #4605

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Oct 8, 2024

  1. feat: Add support for *args to AliasMap

    This is required in order to support command aliases as functions, because they will require the following to be supported:
    ```toml
    'upload()' = ["upload", "@"]
    'upload(r)' = [["fix", "$r"], ["git", "push", "--change", "$r"]]
    ```
    
    Here, `jj upload` would need to map to the first, `jj upload foo` would need to map to the second, and `jj upload foo --bar` would also need to map to the second.
    matts1 committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    e723d10 View commit details
    Browse the repository at this point in the history