Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

symbol-cli.config.json - manual deletion causes failure #369

Open
davehodgson opened this issue Mar 31, 2021 · 0 comments
Open

symbol-cli.config.json - manual deletion causes failure #369

davehodgson opened this issue Mar 31, 2021 · 0 comments

Comments

@davehodgson
Copy link

  1. Expected: If I delete the contents of the file (or file itself) that CLI can recover and recreate it. Actual: If you empty the file, it can't add any new profiles nor can it list them

  2. Open symbol-cli.config.json delete contents, save, go to terminal and run symbol-cli profile list

  3. Ubuntu 20.04

It relies on the file having {} in it, if its empty it can't cope.

The inability to delete profiles in the CLI means this is the only obvious way to remove them, putting {} back into the file fixes it, we just need the parser/test to interpret empty file as {} or put {} back into the file if its empty and re-open

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant