-
Notifications
You must be signed in to change notification settings - Fork 40
feat: canonical command names #497
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
Conversation
9f98288 to
6c538cd
Compare
peterwht
left a comment
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.
This is looking good!
One thing I noticed outside the changes in this PR (but are relevant), is that there are several commands that have the Null variant. This would probably be a good PR to fix those. These include commands such as call and clean.
It would also be great to show what the telemetry output is in Umami as well so you can see what's expected. Especially with a more complex command with a few arguments / features, etc.
peterwht
left a comment
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.
awesome PR! Great refactor.
I just left two small comments, and then after your answer I am ready to approve.
AlexD10S
left a comment
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! Thanks for tackling this.
Just need to fix a unit test and a clippy warning, and we’re good to go.
Also tagging @chungquantin — if this gets merged before #496, we have to be sure it follows the same format in Try Runtime.
I suggest I handle that after that is merged |
AlexD10S
left a comment
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.
LGTM! Thanks for the quick fixes
peterwht
left a comment
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.
LGTM!
ceb95e9 to
28dcc4f
Compare
AlexD10S
left a comment
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.
LGTM!
* feat: canonical command names * refactor: use types in stead of strings * refactor: telemetry * fixes * review * fix: telemetry test * fix: test, clippy * refactor: try runtime * fmt
Refactors the implementations for collecting events and data from executing commands.
Essentially we convert the command before it is executed in the primary event. After execution the cli returns additional data. When an error occurs the error is added as data.