Allow wrapping and variable interpolation in help in the devshell menu#298
Allow wrapping and variable interpolation in help in the devshell menu#298deemp wants to merge 28 commits intonumtide:mainfrom
help in the devshell menu#298Conversation
a5b3234 to
39e5a0d
Compare
modules/commands.nix
Outdated
| name = "menu"; | ||
| command = '' | ||
| cat <<'DEVSHELL_MENU' | ||
| cat <<${(x: if config.devshell.menu.interpolate then x else "'${x}'") "DEVSHELL_MENU"} |
There was a problem hiding this comment.
I'd instead change it for everyone or make it configurable on the command level. With flake-parts, commands can get composed from different places, and then it's hard to know how the help is going to be interpolated from the different leafs.
Let's also make the "name" more strict, so it cannot include characters like $
39e5a0d to
7a9e2df
Compare
help in the devshell menu
|
Hmm, what can be the error on macOS? UPD: it was due to longer than |
6fbe1a9 to
d020c6d
Compare
ec94703 to
26a0cfa
Compare
26a0cfa to
a00e035
Compare
- fix test failing on macos due to directory name wrapping
a00e035 to
c6f33b9
Compare
|
@zimbatm, @blaggacao, please, review |
|
Although this is not a moderated repository. Recent Moderation Team actions has scared me away from the Nix Community. I'm sorry, won't be available for review. This has nothing to do with you and your effort which is really commendable. Keep the spirit up! |
Based on #290
Interpolation
There's a
.envfile not added to git.A
devshelluser would like to open the address in a browser.She can write this expression.
And get this devshell menu.
Wrapping
The default devshell looks like this: