-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 descriptive output when creating templates #6103
Conversation
this includes a `welcomeText` attribute which can be set in the template, as well as outputing which files were created.
I think the |
src/nix/flake-init.md
Outdated
@@ -45,6 +49,10 @@ outputs = { self }: { | |||
templates.rust = { | |||
path = ./rust; | |||
description = "A simple Rust/Cargo project"; | |||
welcomeText = '' | |||
You've created a simple Rust/Cargo template. | |||
Visit https://www.rust-lang.org/ for more info. |
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 don't think this is a useful link. It should point to a Nix-specific document.
I understand that it's just an example, but we shouldn't set a wrong precedent.
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.
let me know if it's better now
This number is not updated when welcomeText is added[1][2]. [1]: f3a2940 [2]: NixOS#6103
This number is not updated when welcomeText is added[1][2]. [1]: f3a2940 [2]: NixOS#6103
this includes a
welcomeText
attribute which can be set in thetemplate, as well as outputing which files were created.
#4503