Replies: 1 comment
-
A few notes:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Aloha 🌸
I'm enhancing my CLI to leverage a 'dot config directory', similar to many other CLIs. The standard
config
library will currently fail to create theCONFIG_FILE
if any of part of theCONFIG_FILE
path is missing, not just if the file is missing. Here is a minimal example:As a patch for my use-case, I have modified the
config_init
function insrc/lib/config.sh
such that it callsmkdir -p $(dirname $CONFIG_FILE)
prior to attempting totouch
theCONFIG_FILE
:Do you think this is a valuable enhancement to the core library, or are there good reasons to avoid that?
Beta Was this translation helpful? Give feedback.
All reactions