Skip to content

shakibamoshiri/bash-CLI-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

bash CLI template to build bash CLI

how to use

clone the repository

git clone https://github.com/shakibamoshiri/bash-CLI-template.git
cd bash-CLI-template

run ./cli.sh

./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
    • etc

You can modify these parts and customize it.