refactor: simplify key command config handling - #1420
Merged
Conversation
Contributor
Greptile SummaryThe PR separates key-only commands from config loading, preflights optional signer population, rolls back newly written keys when config persistence fails, and replaces direct config writes with temporary-file renames.
Confidence Score: 4/5The config replacement behavior should be fixed before merging because persisting configuration through a symlink silently breaks the link and leaves its target stale. The new temporary-file rename changes established path semantics for every config-writing command by replacing an existing symbolic link with a regular file. Files Needing Attention: link/internal/config/config.go Important Files Changed
Reviews (1): Last reviewed commit: "simplify key command config handling" | Re-trigger Greptile |
swift1337
force-pushed
the
fix/key-cli
branch
2 times, most recently
from
August 25, 2026 10:23
ee1ad8e to
b80eee7
Compare
Signed-off-by: Gjermund Garaba <gjermund@garaba.net>
gjermundgaraba
force-pushed
the
refactor/key-cli-config
branch
from
August 25, 2026 12:33
d01a3c0 to
3985ae9
Compare
3 tasks
swift1337
approved these changes
Aug 25, 2026
swift1337
added a commit
that referenced
this pull request
Aug 25, 2026
* allow `ibc keys *` w/o config * add -p shorthand for --populate-config * simplify * streamline --populate-config logic; fail on existing key * simplify key command config handling (#1420) Signed-off-by: Gjermund Garaba <gjermund@garaba.net> --------- Signed-off-by: Gjermund Garaba <gjermund@garaba.net> Co-authored-by: Gjermund Garaba <gjermund@garaba.net>
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.
Summary
Tests