Skip to content

bingoct/shell-scaffold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

shell-scaffold is a CLI simple shell scaffold.

FIlE Tree

shell-scaffold
├── bin                 # a shell app templates
├── scripts             # sub command
├── shell_completion    # tab completion tempaltes
└── utils
    ├── alias
    └── functions

Before write code

You should change the bin/shell-scaffold line 20 APP_ROOT to another name, like foo.

➜ sed -i "s/APP_ROOT/foo/" bin/shell-scaffold

And add foo to your environment.

echo "export foo=$(pwd)" >>$HOME/.bashrc

Prepare sub command

➜ ./bin/shell-scaffold
Description:
  shell-scaffold is a CLI simple shell scaffold
Usage:
  shell-scaffold [command]
Commands:
  version      - print version
  renew        - tool self-renewal
  implode      - uninstall this tool
  completion   - auto tab completion
  -h, help     - show usage text

About

shell-scaffold is a CLI simple shell scaffold.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages