This isn't working and always takes the default config file.
To Reproduce
Steps to reproduce the behavior:
Install GC CLI
Login gc login
Check current user is logged in gc config current-session
Copy the file from the default directory to a new location e.g. $HOME/.gc-cli/config.json to C:\
Check current user is logged in gc config current-session --config C:\config.json
Result is You do not have an active session, create one by running 'gc login'\n
Expected behavior
Step 3 and 5 in the above should return the same result.
Screenshots
C:\>gc config current-session --config 'C:\config.json'
You do not have an active session, create one by running 'gc login'\n
C:\>gc config current-session --config 'config.json'
You do not have an active session, create one by running 'gc login'\n
C:\>gc config current-session --config config.json
You do not have an active session, create one by running 'gc login'\n
C:\>
Describe the bug When using the CLI you should be able to change the config file by using the before documented parameter:
https://developer.gocardless.com/cli-reference/gc/
--config string config file (default is $HOME/.gc-cli/config.json)
This isn't working and always takes the default config file.
To Reproduce Steps to reproduce the behavior:
gc login
gc config current-session
gc config current-session --config C:\config.json
You do not have an active session, create one by running 'gc login'\n
Expected behavior Step 3 and 5 in the above should return the same result.
Screenshots
Desktop