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
Update inspec check docs for --format option #5617
Conversation
✔️ Deploy Preview for chef-inspec ready! 🔨 Explore the source changes: e02972a 🔍 Inspect the deploy log: https://app.netlify.com/sites/chef-inspec/deploys/61386090f4d16b0008a4f8dd 😎 Browse the preview: https://deploy-preview-5617--chef-inspec.netlify.app/inspec/cli |
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
fc96c6a
to
2f44f7b
Compare
docs-chef-io/content/inspec/cli.md
Outdated
@@ -64,7 +64,7 @@ inspec check PATH | |||
This subcommand has additional options: | |||
|
|||
* ``--format=FORMAT`` | |||
|
|||
The output format to use doc (default), json. If valid format is not provided then it will use the default. |
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.
Is this just checking that the inspec.yml is in a particular format? Wouldn't it just be yaml since it's a yaml file? Or is there JSON data embedded in the 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.
inspec check
is a linting utility which checks several aspects of a profile, including the inspec.yml file. The --format
flag controls the output format of inspec check
. It provides a human-readable ("doc") format, and a machine-readable (json) format.
Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
Not sure the edits - esp the formats are fine - pls chk n let us know. |
docs-chef-io/content/inspec/cli.md
Outdated
@@ -64,15 +63,15 @@ inspec check PATH | |||
This subcommand has additional options: | |||
|
|||
* ``--format=FORMAT`` | |||
|
|||
The output format to use doc (default), json. If valid format is not provided, then it will use the default. |
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.
The output format to use doc (default), json. If valid format is not provided, then it will use the default. | |
The output format to use. Valid values: `json` and `doc`. Default value: `doc`. |
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Signed-off-by: Vasu1105 vasundhara.jagdale@chef.io
Description
Updated docs for --format option to add a description and more details.
Related Issue
Fix #2971
Types of changes
Checklist: