https://github.com/tecfu/form-cli
A command line utility to populate placeholders in a form template and save or print the output.
https://github.com/tecfu/form-cli
Last synced: over 1 year ago
JSON representation
A command line utility to populate placeholders in a form template and save or print the output.
- Host: GitHub
- URL: https://github.com/tecfu/form-cli
- Owner: tecfu
- License: gpl-2.0
- Created: 2017-07-08T23:52:56.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-07-14T09:24:39.000Z (about 7 years ago)
- Last Synced: 2025-03-07T08:18:22.082Z (over 1 year ago)
- Language: JavaScript
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# form-cli
A command line utility to populate placeholders in a form template and
save or print the output.
## Install:
### Local Machine
```sh
npm i -g form-cli
```
### Running Via Prebuilt Docker Image
```sh
$ docker pull tecfu/form-cli
$ docker run -d \
-it \
--name form-cli \
--mount type=bind,source="$(pwd)",target=/home \
form-cli:latest
```
### Example Template:
Placeholders are surrounded by % symbol.
```
Hi there, %YOUR_NAME%.
```
## Usage:
```sh
$ form-cli -t somefile.txt
```
## Options:
```sh
Options:
--template, -t File path of template. [required]
--printer, -p Name of printer to print to.
--save, -s Save the file to the path specified. [default: false]
```