-
Notifications
You must be signed in to change notification settings - Fork 59
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
YAML documentation and JSON documentation fixes #141
Conversation
args := os.Args | ||
if len(args) != 3 { | ||
fmt.Printf("Usage: %v <yaml-file-in> <spdx-file-out>\n", args[0]) | ||
fmt.Printf(" Load SPDX 2.2 tag-value file <yaml-file-in>, and\n") |
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.
Typo, loads a YAML file
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.
Thanks, I changed
defer w.Close() | ||
|
||
// try to save the document to disk as an SPDX tag-value file, version 2.2 | ||
err = spdx_yaml.Save2_2(doc, w) |
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.
Saves a YAML file, not tag-value
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.
Thanks, I changed
There might be more small nitpicky typos, I didn't seek them all out, but looks good 😃 thanks for adding examples |
Signed-off-by: Steve Winslow <steve@swinslow.net> Signed-off-by: CatalinStratu <catalinstratu45@gmail.com>
Signed-off-by: Steve Winslow <steve@swinslow.net> Signed-off-by: CatalinStratu <catalinstratu45@gmail.com>
Signed-off-by: Steve Winslow <steve@swinslow.net> Signed-off-by: CatalinStratu <catalinstratu45@gmail.com>
Signed-off-by: Ian Ling <ian@iancaling.com> Signed-off-by: CatalinStratu <catalinstratu45@gmail.com>
Signed-off-by: Ian Ling <ian@iancaling.com> Signed-off-by: CatalinStratu <catalinstratu45@gmail.com>
Signed-off-by: CatalinStratu <catalinstratu45@gmail.com>
Signed-off-by: CatalinStratu <catalinstratu45@gmail.com>
Signed-off-by: CatalinStratu <catalinstratu45@gmail.com>
Signed-off-by: CatalinStratu <catalinstratu45@gmail.com>
Signed-off-by: CatalinStratu <catalinstratu45@gmail.com>
Signed-off-by: CatalinStratu <catalinstratu45@gmail.com>
Signed-off-by: CatalinStratu <catalinstratu45@gmail.com>
Hi, @swinslow what do you think about this PR? |
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, thank you @CatalinStratu!
Hello, in this PR I added the example of using the YAML component and small fixes to the example of using the JSON component. Thank you!