Add sd command for renaming project

This commit is contained in:
Sridhar Ratnakumar 2021-08-04 10:27:17 -04:00 committed by GitHub
parent 6c8b0f92b8
commit d730ca840d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,7 @@ All but the final step need to be done only once.
Then, before using it for real, Then, before using it for real,
- Rename all occurrences of `haskell-template` to `myproject`, as well as rename the cabal file to `myproject.cabal`. - Rename all occurrences of `haskell-template` to `myproject`, as well as rename the cabal file to `myproject.cabal`.
- To do this from commandline, run `nix run nixpkgs#sd -- haskell-template myproject * */*`
- Run `git add . && git commit -m rename` followed by `nix develop` (or `bin/run`) to verify that everything continues to work. - Run `git add . && git commit -m rename` followed by `nix develop` (or `bin/run`) to verify that everything continues to work.
## Other templates ## Other templates