CLI command to save default config in a file#976
Open
Prajjawalk wants to merge 3 commits intopokt-network:mainfrom
Open
CLI command to save default config in a file#976Prajjawalk wants to merge 3 commits intopokt-network:mainfrom
Prajjawalk wants to merge 3 commits intopokt-network:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Reference issue- #975
Summary generated by Reviewpad on 30 Nov 23 03:37 UTC
This pull request adds a new command to the CLI that allows saving the default configuration to a file. The configuration is saved in a config.yaml file. Additionally, it handles errors in the WriteConfigAs function by logging an error message if writing the config to the file fails.
Issue
Fixes #975
Type of change
Please mark the relevant option(s):
List of changes
Testing
make develop_test; if any code changes were mademake test_e2eon k8s LocalNet; if any code changes were madee2e-devnet-testpasses tests on DevNet; if any code was changedRequired Checklist
godocformat comments on touched members (see: tip.golang.org/doc/comment)