No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src Update usage.txt Jun 27, 2018
.gitignore
Cargo.toml
LICENSE
Makefile
README.md

README.md

Hugo

flag manager for shell script

$ hugo

Usage: hugo <DB_NAME> has <ID>
       hugo <DB_NAME> get <ID> [<DEFAULT>]
       hugo <DB_NAME> set <ID> [<TEXT>]
       hugo <DB_NAME> check <ID> [<TEXT>]
       hugo <DB_NAME> swap <ID> [<TEXT>]

has:
  If <DATA_FILE> has <ID>, `hugo` command succeeds.
get:
  If <DATA_FILE> has <ID>, `hugo` command succeeds and print the value.
set:
  Set <TEXT> with <ID>.
check:
  `has` and `set`
swap:
  Same to `check` except that print the old value.