From f7d0503c7b85d96588bf1a75fdf1cce27acf1460 Mon Sep 17 00:00:00 2001 From: William Luke Date: Wed, 16 Mar 2022 11:21:48 +0300 Subject: [PATCH] fix: update config paths --- README.md | 11 ++++++----- cic/config.py | 2 +- {config => cic/configs}/docker/config.ini | 0 {config => cic/configs}/local/config.ini | 0 {config => cic/configs}/mainnet/config.ini | 0 {config => cic/configs}/testnet/config.ini | 0 6 files changed, 7 insertions(+), 6 deletions(-) rename {config => cic/configs}/docker/config.ini (100%) rename {config => cic/configs}/local/config.ini (100%) rename {config => cic/configs}/mainnet/config.ini (100%) rename {config => cic/configs}/testnet/config.ini (100%) diff --git a/README.md b/README.md index 876a698..9df63b9 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,14 @@ pip install cic-cli[eth] ``` ## Usage ### Using the wizard +First make sure that you edit the configs below to add your paths for `[auth]keyfile_path` and `[wallet]keyfile` +The configs are located in `~/.config/cic/cli/config/` ``` # Local -cic wizard ./somewhere -c ./config/docker +cic wizard ./somewhere -c ~/.config/cic/cli/config/docker # Test Net -cic wizard ./somewhere -c ./config/testnet - +cic wizard ./somewhere -c ~/.config/cic/cli/config/testnet ``` ### Modular Some of the concepts described below assume familiarity with base @@ -89,10 +90,10 @@ sudo apt-get install -y kubectl - Port foward the meta pod to the local machine using `kubectl port-forward pods/ 6700:8000 -n grassroots --kubeconfig=$HOME/.kube/.yaml` - Clone this repository to your local machine - Run `poetry install -E eth` in the repo root -- Open `./config/testnet/config.ini` and change +- Open `./cic/config/testnet/config.ini` and change - [auth]keyfile_path - [wallet]key_file -- Open a new terminal and run `poetry run cic wizard -c ./config/testnet ./somewhere` +- Open a new terminal and run `poetry run cic wizard -c ./cic/config/testnet ./somewhere` ### Tests ``` diff --git a/cic/config.py b/cic/config.py index beffc70..e015d8f 100644 --- a/cic/config.py +++ b/cic/config.py @@ -1,7 +1,7 @@ import os import shutil -default_module_configs = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'config') +default_module_configs = os.path.join(os.path.dirname(os.path.realpath(__file__)), '.', 'configs') def ensure_base_configs(config_dir: str): """ diff --git a/config/docker/config.ini b/cic/configs/docker/config.ini similarity index 100% rename from config/docker/config.ini rename to cic/configs/docker/config.ini diff --git a/config/local/config.ini b/cic/configs/local/config.ini similarity index 100% rename from config/local/config.ini rename to cic/configs/local/config.ini diff --git a/config/mainnet/config.ini b/cic/configs/mainnet/config.ini similarity index 100% rename from config/mainnet/config.ini rename to cic/configs/mainnet/config.ini diff --git a/config/testnet/config.ini b/cic/configs/testnet/config.ini similarity index 100% rename from config/testnet/config.ini rename to cic/configs/testnet/config.ini