-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: knqyf263 <[email protected]>
- Loading branch information
Showing
1 changed file
with
11 additions
and
3 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 |
---|---|---|
|
@@ -724,9 +724,17 @@ func NewPluginCommand() *cobra.Command { | |
} | ||
cmd.AddCommand( | ||
&cobra.Command{ | ||
Use: "install NAME | URL | FILE_PATH", | ||
Aliases: []string{"i"}, | ||
Short: "Install a plugin", | ||
Use: "install NAME | URL | FILE_PATH", | ||
Aliases: []string{"i"}, | ||
Short: "Install a plugin", | ||
Example: ` # Install a plugin from the plugin index | ||
$ trivy plugin install referrer | ||
# Specify the version of the plugin to install | ||
$ trivy plugin install [email protected] | ||
# Install a plugin from a URL | ||
$ trivy plugin install github.com/aquasecurity/trivy-plugin-referrer`, | ||
SilenceErrors: true, | ||
SilenceUsage: true, | ||
DisableFlagsInUseLine: true, | ||
|