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
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Aloha 🌸
I'm enhancing my CLI to leverage a 'dot config directory', similar to many other CLIs. The standard
configlibrary will currently fail to create theCONFIG_FILEif any of part of theCONFIG_FILEpath 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_initfunction insrc/lib/config.shsuch that it callsmkdir -p $(dirname $CONFIG_FILE)prior to attempting totouchtheCONFIG_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