-
Notifications
You must be signed in to change notification settings - Fork 211
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 new dhall to-directory-tree
command
#1606
Conversation
Fixes #1605 This command lets you transform `Text` literals into files and record literals into directories.
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.
Nice! This looks really handy! :)
The command name filesystem
reminds me more of NTFS
and Ext4
than directory trees. I don't have a great idea for a better name though… Something like directory-tree
, generate-directory-tree
, gen-dir-tree
, dir-tree
?!
Also: should this check whether the output directory is empty and abort otherwise? (Overridable with --force
or so?). But that's something that could easily be added later on.
@sjakobi: How about |
@sjakobi: Or maybe |
|
@sjakobi: Then maybe |
That's also fine, but remember that we already have |
... based on discussion with @sjakobi
dhall filesystem
commanddhall to-directory-tree
command
@Gabriel439 some input - a This would make it possible to generate different files on the basis of different inputs, rather than being restricted to generating a fixed set of files. |
... as suggested by @ari-becker
Great! I’ve been wanting to have/write something like this in nix for a while, but now I can just do it from dhall directly. |
is there an example of how to use this feature? |
Fixes #1605
This command lets you transform
Text
literals into files and record literalsinto directories.