Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add --help to snyk protect feat: add help flag to protect feat: some fixes feat: add help flag tests
- Loading branch information
Avishag Israeli
committed
Jul 27, 2021
1 parent
af4015f
commit 7580e9f
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" | ||
} |