Skip to content
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

Merged
merged 33 commits into from
Oct 20, 2021
Merged

command line interface #21

merged 33 commits into from
Oct 20, 2021

Conversation

thomas-fossati
Copy link
Contributor

@thomas-fossati thomas-fossati commented Sep 29, 2021

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:

go install github.com/veraison/corim/cocli@9a8057cf37abd4a2aecfd4c328dee31fc9711b8f

(This PR is relevant in the context of ietf-rats/ietf-corim-cddl#121)

@thomas-fossati thomas-fossati changed the title comid create CLI (comid create) Sep 29, 2021
@thomas-fossati thomas-fossati force-pushed the cli branch 6 times, most recently from 62da24f to 417d148 Compare September 30, 2021 07:29
@thomas-fossati thomas-fossati changed the title CLI (comid create) command line interface Sep 30, 2021
@thomas-fossati thomas-fossati force-pushed the cli branch 2 times, most recently from bb48fe2 to 3ff20db Compare October 5, 2021 20:27
@thomas-fossati thomas-fossati force-pushed the cli branch 2 times, most recently from c1e3802 to d602d9a Compare October 6, 2021 14:27
@thomas-fossati thomas-fossati self-assigned this Oct 7, 2021

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)
Copy link
Contributor

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?

@yogeshbdeshpande
Copy link
Contributor

I have completed my review! Happy to discuss them in a short call, if any comment is un-clear!

@thomas-fossati
Copy link
Contributor Author

e same level as the rest of the library code. I think we'd be introducing an artificial distinction with no added value.

That's precisely I am saying: As you mentioned yourself, it is a "serious tool"!

All I am saying that just like "Docs" go in docs folder (as they are documents), Examples go in examples folder, script goes in "script" folder, similarly there should be a suitable top level entity that precisely describe the job that this deliverable does!

As per discussion, we are dealing with this in #22

@thomas-fossati thomas-fossati merged commit b352a55 into main Oct 20, 2021
@thomas-fossati thomas-fossati deleted the cli branch October 20, 2021 11:01
@thomas-fossati
Copy link
Contributor Author

Fixes #19

@thomas-fossati thomas-fossati mentioned this pull request Oct 26, 2021
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants