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

Allow name-based / num-based parameter tokens #151

Closed
khuongduybui opened this issue Jul 19, 2022 · 3 comments · Fixed by #153
Closed

Allow name-based / num-based parameter tokens #151

khuongduybui opened this issue Jul 19, 2022 · 3 comments · Fixed by #153
Assignees
Labels
✨ enhancement New feature or request

Comments

@khuongduybui
Copy link

For example, I have a command that reuses a parameter many times like this:
echo hello #; echo I hope you find this message well, #; echo goodbye, #

Although there are three # placeholders, they are all for the same param.
If I put such a command into hoard today, when picking it, I will have to supply the same name "John" 3 times to get
echo hello John; echo I hope you find this message well, John; echo goodbye, John

What if I can tell hoard that those are the same parameter, such as:
echo hello #name; echo I hope you find this message well, #name; echo goodbye, #name
And when picking the command, instead of being asked for the first, second, and third params, I simply get asked for the name param?

@Hyde46 Hyde46 self-assigned this Jul 19, 2022
@Hyde46 Hyde46 added the ✨ enhancement New feature or request label Jul 19, 2022
@Hyde46
Copy link
Owner

Hyde46 commented Jul 19, 2022

I think i've considered this case shortly when implementing the parameter tokens, but forgot about it.
Great point you are raising, this should be implemented.
I'll try to make some free time for this 😄

@Hyde46
Copy link
Owner

Hyde46 commented Jul 20, 2022

@khuongduybui Named parameters are now possible on master! If you feel comfortable building this by hand, you can replace the hoard bin with where you have installed your old version and get access to it immediately. 🚀

Otherwise I'll make a release with this and a couple of bug fixes sometime this or next week

@khuongduybui
Copy link
Author

Tyvm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants