-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support a config file #70
Comments
Sure, I'll look into it. In the meantime you could use an alias on your dev laptop that uses a different Something like:
|
Maybe another potential workaround would be using an overridable environment variable to specify the |
There's already
, but that is only available in puppetfile mode. I can also add that to the config mode. |
So, I just run:
And that will be my cachedir when I later run:
? If so, that's perfect. Maybe mention this awesomeness in the README? |
Yep, that should do what you want, if you're only using the puppetfile mode. I'm also not sure why this feature hasn't made it to the README 🤔 |
I added a hint to the README. https://github.com/xorpaul/g10k/releases/tag/v0.3.12 Can you think of another reason a special config file would be helpful or can I close this issue? |
I suppose if there is just one parameter to set, environment variables are fine, whereas if you had to set a few of these parameters, then a config file probably would make sense. Right now, an environment variable is perfect for me. |
It would be great if this tool supported a config file at somewhere like
~/.g10k/config.yml
. My immediate use-case is that I want to move thecachedir
on my development laptop only, perhaps to/var/tmp/g10k
because/tmp
is cleaned every time the machine is booted. It looks like while I could specify an alternate cache dir on the command line, that's not ideal because I would need to either change it in the code which is also used in the CI system, or remember to type it each time I run g10k.The text was updated successfully, but these errors were encountered: