-
Notifications
You must be signed in to change notification settings - Fork 971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd: main function, full and light commands with subcommands #97
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Please make sure the code is properly formatted as the linter suggested tho.
b229ea6
to
232c55a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comments but otherwise lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @Wondertan 👏🏼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yay
@@ -55,9 +54,9 @@ func InitWith(path string, tp Type, cfg *Config) error { | |||
if err != nil { | |||
return err | |||
} | |||
log.Info("Saving config") | |||
log.Infow("Saving config", "path", cfgPath) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@renaynay, What's the point of this log if it duplicates Initializing %s Node Repository over '%s'
above? I mean it logs the path to the repo and cfg is constantly repo_path+config.toml, so not sure if there is a point to add this path here, but it does not hurt anyway.
Context
Finally, the main function with cobra commands to run our work. The PR also introduces a pattern for reusable commands in
cmd
package.Other Changes
TODO
Refs
Closes #17