-
Notifications
You must be signed in to change notification settings - Fork 17
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
command line interface #21
Conversation
62da24f
to
417d148
Compare
bb48fe2
to
3ff20db
Compare
c1e3802
to
d602d9a
Compare
|
||
if bytes.Equal(cborTag, corim.ComidTag) { | ||
if err = printComid(cborData, hdr); err != nil { | ||
fmt.Printf(">> skipping malformed CoMID tag at index %d: %v\n", i, err) |
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.
I understand you want to continue decoding at line 114, 118 and 121, but should they not be really fmt.Errorf("") considering that there is still an error in the system?
I have completed my review! Happy to discuss them in a short call, if any comment is un-clear! |
As per discussion, we are dealing with this in #22 |
Fixes #19 |
It's quite a lot to ingest, sorry. However, the PR is split into a number of (hopefully) logical commits that can be reviewed in isolation.
The docs (https://github.com/veraison/corim/blob/cli/cocli/README.md) might help getting a high level view of the whole thing before being bogged down into the minutiae.
If you are planning to install the CLI as per README.md instructions, note that the
go install
command needs to be slightly amended to point to the dev branch:(This PR is relevant in the context of ietf-rats/ietf-corim-cddl#121)