-
Notifications
You must be signed in to change notification settings - Fork 66
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
Add CLI Feature: Hot commands #406
Conversation
internal/quick/deploy.go
Outdated
var DeployCommand = &command.Command{ | ||
Cmd: &cobra.Command{ | ||
Use: "deploy", | ||
Short: "Deploy contracts", |
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.
More clarity maybe: Deploy all project contracts
internal/quick/run.go
Outdated
"HotCommand": "true", | ||
}, | ||
Run: func(cmd *cobra.Command, args []string) { | ||
project.DeployCommand.Cmd.Run(cmd, args) |
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.
Wouldn't this two commands be swapped in order?
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.
Great effort so far, one thing that is problematic and needs changing is the fact that if you now use help with any of the commands you get a "hot commands" section, so for example, if I try to run flow accounts --help
I will get first an empty "hot commands" section, but the way we want this to work is to only show that on the top "flow" command help.
I have made the changes and updated the code. Could you please have a look at it now ? |
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.
Great improvement, LGTM
Codecov Report
@@ Coverage Diff @@
## master #406 +/- ##
==========================================
- Coverage 55.33% 55.24% -0.09%
==========================================
Files 36 36
Lines 1874 1877 +3
==========================================
Hits 1037 1037
- Misses 707 710 +3
Partials 130 130
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
This PR is for onflow/flip-fest#14
Description
For contributor use:
master
branchFiles changed
in the Github PR explorer