This script will install the latest accepted snip release.
Snip purpose is to allow a quick method to integrate between markdown snippets and cli.
# snip main first
echo first
# snip main hello
echo "hello world"
# snip main bye
echo bye
general format:
./snip.py [<url>|<local-file>|<shortcut>] <cmd> <options>
ls: show snippets on screen with their enumeration
1,2,...: executes the enumerated snip #
[--dry / -d]: only prints to screen without executing it.
[-m / --modify]: opens vi editor, after closing saved text is executed
./snip.py https://gitlab.cee.redhat.com/redsamurai/snippets/raw/master/modi.md ls
./snip.py <full-path>/modi.md ls
./snip.py main ls