3 ms·
Here is a declarative bash DSL I ran across a few months ago: https://github.com/mattly/bork https://github.com/mattly/bork and here is an example from their
by dugmartin 9y ago
Here is a declarative bash DSL I ran across a few months ago:
https://github.com/mattly/bork https://github.com/mattly/bork
and here is an example from their README:
ok brew # presence and updatedness of Homebrew
ok brew git # presence and updatedness of Homebrew git package
ok directory $HOME/code # presence of the ~/code directory
ok github $HOME/code/dotfiles mattly/dotfiles # presence, drift of git repository in ~/code/dotfiles
cd $HOME
for file in $HOME/code/dotfiles/configs/*
do # for each file in ~/code/dotfiles/configs,
ok symlink ".$(basename $file)" $file # presense of a symlink to file in ~ with a leading dot
done