config-sh

TODO

Goal #

With help from crate config-rs and cargo test, provide an elegance and safe way to load config for shell scripts.

Language #

Rust && Posix Shell

Config #

Almost all the supported format from config-rs, same as other tools.

  • environment variables
  • $XDG_CONFIG/xxx/o
  • ~/.config/xxx/o
  • /etc/xxx/o
  • /usr/share/xxx/o

Export #

#!/bin/sh

eval(config-rs --)