An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          



template logo

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

Buy Me A Coffee

## 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)***