-
Notifications
You must be signed in to change notification settings - Fork 5
chore: adding more required functionality #5
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
Signed-off-by: Pritesh Bandi <priteshbandi@gmail.com>
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.
- Please add doc to struct
CLIdefined at line 23 ofcli.go. - When I new a
CLI structwithpl == nil:cli, _ := New("notation-my-plugin", nil), this willpanicwhen I callcli.Execute(...). We should always checknilwhen new aCLI. - In
NewWithLoggerfunction, we are only checking prefix of the plugin executable name. We should also check the suffix matches with the plugin'smetadata.Name, i.e.{plugin-name}ofnotation-{plugin-name}should equal topl.GetMetadata resp.Name. In fact, do we really need theexecutableNameparameter here? deferStdout()andtype discardLogger struct{}should be moved toutils.go- In
utils.go getValidArgs(), the result strings should not be hardcoded, because they are defined in theproto.go:type Command string
Co-authored-by: Patrick Zheng <patrickzheng@microsoft.com> Signed-off-by: Pritesh Bandi <priteshbandi@gmail.com>
Co-authored-by: Patrick Zheng <patrickzheng@microsoft.com> Signed-off-by: Pritesh Bandi <priteshbandi@gmail.com>
ff76a38 to
591e3f3
Compare
Signed-off-by: Pritesh Bandi <priteshbandi@gmail.com>
Done. Addressed all the feedbacks |
ghost
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 with a single nit comment.
Signed-off-by: Pritesh Bandi <priteshbandi@gmail.com>
Signed-off-by: Pritesh Bandi <priteshbandi@gmail.com>
ghost
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
rgnote
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
JeyJeyGao
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
Uh oh!
There was an error while loading. Please reload this page.