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

declarative shells tutorial: more generic example commands #901

Merged
merged 2 commits into from
Feb 9, 2024

Conversation

fricklerhandwerk
Copy link
Collaborator

fixes #892

@aynsof thanks for reporting!

@nixos/documentation-team what do you think? We discussed a long time ago #498 (comment) to use developer-oriented tools in the examples, but this seems to keep failing due to ever so slightly elevated requirements for them to actually work.
I'm now inclined to keep examples deliberately toy-like to avoid obscuring the actual thing we want to teach.
Admittedly, this particular change adds lots of character noise, but I couldn't come up with something more elegant (brief but powerful) in the short amount of time I gave it.
Maybe someone has a better suggestion?

Copy link
Contributor

@henrik-ch henrik-ch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Went through the example and looks good to me.

Copy link
Contributor

@henrik-ch henrik-ch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 This works as expected as far as I can see, and I consider it an improvement as it's simpler and requires less unix cli knowledge. (Beginners may not know what is part of nix and not or struggle with the overhead of learning about man pages at the same time as they learn nix)

@fricklerhandwerk fricklerhandwerk enabled auto-merge (rebase) February 9, 2024 11:53
@fricklerhandwerk fricklerhandwerk merged commit 3ef953b into NixOS:master Feb 9, 2024
5 checks passed
@aynsof
Copy link

aynsof commented Feb 9, 2024

@fricklerhandwerk thank you, this is so much clearer for newcomers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Git shell hook breaks if not a Git repo
3 participants