Closed Joaquin6 closed 4 years ago
I think that is a good idea. What do you think @JPeer264
Do you have a specific use case for this where you see an advantage of this feature, or a way how this could look like?
The only two ways of what I can think of is either:
sgc
e.g.: sgc --config-path=/path/
(which, imho, might be annoying over some time)sgc
s default, kinda like git (which does not exist atm) e.g.: sgc set config-path "/path/"
or sgc set --global config-path "/path/"
But yeah, you are right. This parameter is not yet used. If there is a reasonable use case and a clean implementation I would consider to implement this feature.
@Joaquin6 ping
Closed due to no response. If somebody needs this feature just comment and I'll reopen this issue.
Right now, the only locations to provide configuration is at
path.join(cwd, '.sgcrc')
,path.join(homedir, '.sgcrc')
(user's machine home directory), or insidepackage.json
in asgc
property. According to thegetConfig
method, we should be able to pass in a alternative path. However it doesn't seem to be used at all when called from the cli module.It be nice to be able to be able to pass in the alternative path so the end user can choose where to place their config file.