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

Support command alias #58

Open
vincentdephily opened this issue Nov 30, 2024 · 0 comments
Open

Support command alias #58

vincentdephily opened this issue Nov 30, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@vincentdephily
Copy link
Owner

It'd be nice to enable setting aliases in emlop.toml, as a shortcut for common args.

Might need a bit of trickery to avoid parsing args twice, but it shouldn't be too hard: peek the first arg, and if it matches a config entry, prepend the corresponding args before calling clap.

alias = { ll = "log --show=a --from=command", pr = "predict --show=r" }
@vincentdephily vincentdephily added the good first issue Good for newcomers label Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant