Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shakibamoshiri/bash-cli-template
bash CLI template to build bash CLI
https://github.com/shakibamoshiri/bash-cli-template
bash bash-cli cli cli-with-subcommand
Last synced: 6 days ago
JSON representation
bash CLI template to build bash CLI
- Host: GitHub
- URL: https://github.com/shakibamoshiri/bash-cli-template
- Owner: shakibamoshiri
- Created: 2021-03-12T08:50:45.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-03T14:29:53.000Z (over 2 years ago)
- Last Synced: 2023-03-08T18:04:03.834Z (over 1 year ago)
- Topics: bash, bash-cli, cli, cli-with-subcommand
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bash CLI template to build bash CLI
## how to use
### clone the repository
```bash
git clone https://github.com/shakibamoshiri/bash-CLI-template.git
cd bash-CLI-template
```### run ./cli.sh
```bash
./cli
```### modify according to your needs
Core parts:- variables for echo options
- `_os_flag`
- `_os_args`
- etc
- helper functions, show / print to users
- `_help`
- `_os_help`
- check functions: to check the arguments, safety checks
- `_os_check`
- etcYou can modify these parts and customize it.