cruel-intentions / devshell-files

Using nix as JSON, TEXT, TOML and YAML generator
https://cruel-intentions.github.io/devshell-files/
MIT License
16 stars 4 forks source link

Option to disable file creation #7

Open hugosenari opened 1 year ago

hugosenari commented 1 year ago

@adrian-gierakowski say in other thread:

I'd say there should be an option to disable auto-creation and provide a command\script which could be used to recreate the files manually.

I liked the idea:

How to do it (when I or someone have time):

  1. add option to disable file creation (ie. git-add in git.nix)
  2. add module to flake (ie. git.nix in flake.nix)
  3. add an & to check 1. in file module startup
  4. the command\script already exists as devshell-files
  5. add it to auto generated docs (ie. git.nix in docs.nix)
  6. Optionally document it in readme as example
  7. Optionally add to template