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
Add an 'instructions' to Pulumi templates to display them at pulumi new #15813
base: master
Are you sure you want to change the base?
Conversation
Changelog[uncommitted] (2024-03-28)Features
|
Nope quickstart is for the end, this is for the start. |
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.
Looks reasonable to me. Note that templates that add this will fail on old CLI versions because the CLI validates templates strictly (i.e. doesn't allow unknown extra keys).
Oh, I missed this one. I'll double check that the difference is important for the user.
Yeah, I noticed that. This sounds bad - but I guess unavoidable at this point? Should we relax validation to make sure we can make changes in the future more easily? |
Probably, but I'm also not keen on just silently dropping typo'd fields. |
Yes. Really need to get to this to "stop the bleeding": #14775 |
The unfortunate thing is we've backed ourselves into a corner here. We're basically not going to be able to use |
Description
Add an
instructions
option to Pulumi templates, e.g.They will be displayed after template selection:
Color codes are supported for better attention grabbing:
I haven't found any
new
tests inspecting stdout, so I had to thread a new argument to pass to the command. I choose to only change the lines related to this change to use the arguments, let me know if you think it's better to change addfmt.Println
statements to be consistent. I default to changing as little as needed.Fixes #15360
Checklist
make tidy
to update any new dependenciesmake lint
to verify my code passes the lint checkgofumpt
make changelog
and committed thechangelog/pending/<file>
documenting my change