3 ms·
Here's a script that left an impression on me the first time I saw it: https://github.com/containerd/nerdctl/blob/main/extras/rootless/containerd-rootless-setu
by Yasuraka 2y ago
Here's a script that left an impression on me the first time I saw it:
https://github.com/containerd/nerdctl/blob/main/extras/rootless/containerd-rootless-setuptool.sh https://github.com/containerd/nerdctl/blob/main/extras/rootl...
I have since copied this pattern for many scripts: logging functions, grouping all global vars and constants at the top and creating subcommands using shift.
- oneshtein 2y agoYou may like bash-modules then: https://github.com/vlisivka/bash-modules/tree/master/bash-modules/examples https://github.com/vlisivka/bash-modules/tree/master/bash-mo...