-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
77 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,31 @@ | ||
package auditspecific | ||
|
||
import "fmt" | ||
|
||
// TODO: Deprecated commands (remove at next CLI major version) | ||
|
||
const descFormat = "Execute an audit %s command, using the configured Xray details." | ||
|
||
func GetGoDescription() string { | ||
return fmt.Sprintf(descFormat, "Go") | ||
} | ||
|
||
func GetGradleDescription() string { | ||
return fmt.Sprintf(descFormat, "Gradle") | ||
} | ||
|
||
func GetMvnDescription() string { | ||
return fmt.Sprintf(descFormat, "Maven") | ||
} | ||
|
||
func GetNpmDescription() string { | ||
return fmt.Sprintf(descFormat, "Npm") | ||
} | ||
|
||
func GetPipDescription() string { | ||
return fmt.Sprintf(descFormat, "Pip") | ||
} | ||
|
||
func GetPipenvDescription() string { | ||
return fmt.Sprintf(descFormat, "Pipenv") | ||
} |
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,5 @@ | ||
package audit | ||
|
||
func GetDescription() string { | ||
return "Audit your local project's dependencies by generating a dependency tree and scanning it with Xray." | ||
} |
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,20 @@ | ||
package buildscan | ||
|
||
import "github.com/jfrog/jfrog-cli-core/v2/plugins/components" | ||
|
||
func GetDescription() string { | ||
return "Scan a published build-info with Xray." | ||
} | ||
|
||
func GetArguments() []components.Argument { | ||
return []components.Argument{ | ||
{ | ||
Name: "build name", | ||
Description: "Build name.", | ||
}, | ||
{ | ||
Name: "build number", | ||
Description: "Build number.", | ||
}, | ||
} | ||
} |
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,5 @@ | ||
package curation | ||
|
||
func GetDescription() string { | ||
return "Audit your project dependencies for their curation status." | ||
} |
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,11 @@ | ||
package curl | ||
|
||
import "github.com/jfrog/jfrog-cli-core/v2/plugins/components" | ||
|
||
func GetDescription() string { | ||
return "Execute a cURL command, using the configured Xray details." | ||
} | ||
|
||
func GetArguments() []components.Argument { | ||
return []components.Argument{{Name: "curl command", Description: "cURL command to run."}} | ||
} |
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,5 @@ | ||
package offlineupdate | ||
|
||
func GetDescription() string { | ||
return "Download Xray offline updates." | ||
} |