Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2092 from snyk/feat/add-help-flag-to-protect
feat: add --help to snyk protect
- Loading branch information
Showing
7 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
$ snyk-protect --help | ||
|
||
NAME | ||
@snyk/protect - Patch vulnerable code in your project's dependencies. | ||
|
||
DESCRIPTION | ||
You don't typically need to add the @snyk/protect dependency manually. | ||
For more information on how to setup and use @snyk/protect, visit: | ||
https://github.com/snyk/snyk/tree/master/packages/snyk-protect | ||
|
||
SYNOPSIS | ||
snyk-protect [<options>] | ||
|
||
OPTIONS | ||
--help | ||
Display this help text. | ||
--version | ||
Display the current version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Test fixture for help flag |
12 changes: 12 additions & 0 deletions
12
packages/snyk-protect/test/fixtures/help-flag/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "help-flag", | ||
"version": "1.0.1", | ||
"description": "A test fixture", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Snyk/snyk-todo-list-demo-app/" | ||
}, | ||
"dependencies": { | ||
}, | ||
"license": "Apache-2.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Test fixture for version flag |
12 changes: 12 additions & 0 deletions
12
packages/snyk-protect/test/fixtures/version-flag/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "version-flag", | ||
"version": "1.0.1", | ||
"description": "A test fixture", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Snyk/snyk-todo-list-demo-app/" | ||
}, | ||
"dependencies": { | ||
}, | ||
"license": "Apache-2.0" | ||
} |