Skip to content
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

[BUG]: CLI config file parameter not working #25

Open
JamesSills-OnfocusTech opened this issue Nov 24, 2023 · 0 comments
Open

[BUG]: CLI config file parameter not working #25

JamesSills-OnfocusTech opened this issue Nov 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@JamesSills-OnfocusTech
Copy link

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:

  1. Install GC CLI
  2. Login gc login
  3. Check current user is logged in gc config current-session
  4. Copy the file from the default directory to a new location e.g. $HOME/.gc-cli/config.json to C:\
  5. Check current user is logged in gc config current-session --config C:\config.json
  6. 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:\>

Desktop

  • GoCardless CLI Version: 1.0.0-beta.5
  • Git SHA: 55e1b161be6e1126edfc27ff62ead7e7d1321a9a
  • Go Version: go1.17.13
  • Go OS/Arch: windows/amd64
  • Built at: 2023-01-05T12:41:32Z
@JamesSills-OnfocusTech JamesSills-OnfocusTech added the bug Something isn't working label Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant