Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/norfairking/template-filler
https://github.com/norfairking/template-filler
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/norfairking/template-filler
- Owner: NorfairKing
- License: other
- Created: 2020-10-17T20:31:23.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-24T11:49:56.000Z (about 3 years ago)
- Last Synced: 2024-11-06T09:12:05.546Z (2 months ago)
- Language: Haskell
- Size: 18.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Template Filler
This is a very simple little tool to replace placeholders in templates by your desired name.
It replaces all casings of a given string by the respective casings of your string.Example invocation:
```
template-filler --source path/to/template --destination path/to/new/project --find FooBar --replace HomelessShelter
```This replaces:
```
FooBar -> HomelessShelter
fooBar -> homelessShelter
foo-bar -> homeless-shelter
foo_bar -> homeless_shelter
FOO_BAR -> HOMELESS_SHELTER
foo bar -> homeless shelter
Foo Bar -> Homeless Shelter
foo.bar -> homeless.shelter
Foo.Bar -> Homeless.Shelter
foo/bar -> homeless/shelter
Foo/Bar -> Homeless/Shelter
```If something goes wrong, you can find a backup of your files at `~/.local/share/template`.