yage
89e899d49d
===================================================================== --- New Scripts -------------------------- zsh ) database backup/restore - db/postgres/pg_dump - db/postgres/pg_restore - aws/rds/create-backup - aws/rds/load-backup redis-cached curl commands - redis/curl youtube download - youtube/download - youtube/get-audio-clip --- Changes ------------------------------ - 'scwrypts' executable now reloads upon execution to prevent staleness - added various options to improve api/cli; see 'scwrypts --help' for more --- Bug Fixes ---------------------------- - fixed an issue with .config settings' visibility to non-zsh scripts - fixed an issue with command arguments globbing too early |
||
---|---|---|
.. | ||
aws | ||
db | ||
redis | ||
scwrypts | ||
utils | ||
youtube | ||
common.zsh | ||
hello-world | ||
README.md |
ZSH Scwrypts
Since they emulate direct user interaction, shell scripts are often the straightforward choice for task automation.
Basic Utilities
One of my biggest pet-peeves with scripting is when every line of a (insert-language-here) program is escaped to shell. This kind of program, which doesn't use language features, should be a shell script. While there are definitely unavoidable limitations to shell scripting, we can minimize a variety of problems with a modern shell and shared utilities library.
Loaded by common.zsh
, the utils/
library provides:
- common function wrappers to unify flags and context
- lazy dependency and environment variable validation
- consistent (and pretty) user input / output