-
Notifications
You must be signed in to change notification settings - Fork 2k
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
cli: Allow user to specify dest filename for nomad init #6520
Conversation
Co-Authored-By: Michael Schurter <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest accepting as an option (e.g. nomad init -o example.nomad
) rather than a positional argument, given that init already takes an option, --short
.
Since
|
Just to "pile on" the enhancements ... how about an option for each of the type of tasks as well. Most of the time I want to quickly experiment with This is mostly due to the fact that the real "in-use" |
Yes! I think a lot of us do that frequently, so the desire is definitely there. We've discussed making it templatable or maybe converting to HCLv2 could open up some options, but we've never landed on an exact approach. Mind opening a new issue with (1) your desired features and (2) any thoughts you on implementation? |
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
This PR simplifies the user experience of using nomad init to create job skeletons by allowing them to specify the job file name as an optional positional argument to the command.