The CLI should allow users to define global settings shared across all projects. This will improve the developer experience by allowing them to set a default keyring store or chain ID.
Also, we could improve how the config files are stored by grouping them in the .archway folder.
Technical Details
Local config
Rename the local config folder in the projects to .archway.
Move the config file to .archway/config.json.
Global config
Global config folder: defaults to ~/.config/archway, or use XDG_CONFIG_HOME env var. The oclif/core package already supports those settings.
Create the global config file at ~/.config/archway/config.json.
Move the file and unencrypted keystores to ~/.config/archway/keys/.
Imported chain specs should be saved at ~/.config/archway/chains/.
New settings
We should allow setting a default signer so the user doesn't have to use the --from flag always.
Description
The CLI should allow users to define global settings shared across all projects. This will improve the developer experience by allowing them to set a default keyring store or chain ID.
Also, we could improve how the config files are stored by grouping them in the
.archway
folder.Technical Details
Local config
.archway
..archway/config.json
.Global config
~/.config/archway
, or useXDG_CONFIG_HOME
env var. Theoclif/core
package already supports those settings.~/.config/archway/config.json
.~/.config/archway/keys/
.~/.config/archway/chains/
.New settings
--from
flag always.