https://github.com/ashwin990/template
A script to genrate template files.
https://github.com/ashwin990/template
Last synced: about 1 year ago
JSON representation
A script to genrate template files.
- Host: GitHub
- URL: https://github.com/ashwin990/template
- Owner: ASHWIN990
- Created: 2021-08-23T11:44:20.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-25T06:52:26.000Z (almost 5 years ago)
- Last Synced: 2025-01-23T22:34:29.629Z (over 1 year ago)
- Language: Python
- Size: 25.4 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A script to generate template files from CLI 🖥️
**template** is a PYTHON Script to handle **_Template files_** from the fancy of your terminal screen, it's annoying when you have to create a _bash script_ or a _HTML_ document you have to create a file and make the file executable if neccessary, but using this you dont have to deal with all of that just a single command and you're sorted.
template will create a file and the boilerplate.
## Prerequisite
* Install ```python3``` for your distro
Generally ```python3``` can be installed with package name ```python3```
## Installation
**Arch linux** and **Arch based distro** (**_AUR_**)
- yay -S [template](https://aur.archlinux.org/packages/template/)
- pamac install [template](https://aur.archlinux.org/packages/template/)
**Normal Installation**
```bash
git clone https://github.com/ASHWIN990/template.git
cd template
sudo make install
```
**Uninstallation**
```
sudo make uninstall
```
## Usage
```bash
$ template -f bash -n test.sh -x
# Above command will create a 'Bash script' with file name 'test.sh' and due to -x flag the file will be exucutable.
$ template -f html
# Above command will create a 'HTML Doc', with file name 'index.html'.
$ template -l
# Above command will print the Available templates.
# Output :
# Available Templates are:-
# Language File Name
# --------------------
# python script.py
# bash script.sh
# c main.c
# html index.html
```
## Options
```bash
-h, --help Show this help message and exit
-f FILE TYPE Provide the Template type
-n FILE NAME Provide the desired File name
-x Make the new file executable
-l List the available Templates
```
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
## Support Me
## Author
* **[ASHWINI SAHU](https://ashwini.codes)**
* **Email me at : *ashwinisahu990@gmail.com***
* **Follow me at : *[Instagram](https://instagram.com/kumar_ashwin_sahu) , [Twitter](https://twitter.com/ashwinisahu990)***
