feat: init nightly vuls for blackhat
This commit is contained in:
44
pkg/cmd/root/root.go
Normal file
44
pkg/cmd/root/root.go
Normal file
@@ -0,0 +1,44 @@
|
||||
package root
|
||||
|
||||
import (
|
||||
"github.com/MakeNowJust/heredoc"
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
configCmd "github.com/future-architect/vuls/pkg/cmd/config"
|
||||
dbCmd "github.com/future-architect/vuls/pkg/cmd/db"
|
||||
detectCmd "github.com/future-architect/vuls/pkg/cmd/detect"
|
||||
reportCmd "github.com/future-architect/vuls/pkg/cmd/report"
|
||||
scanCmd "github.com/future-architect/vuls/pkg/cmd/scan"
|
||||
serverCmd "github.com/future-architect/vuls/pkg/cmd/server"
|
||||
tuiCmd "github.com/future-architect/vuls/pkg/cmd/tui"
|
||||
versionCmd "github.com/future-architect/vuls/pkg/cmd/version"
|
||||
)
|
||||
|
||||
func NewCmdRoot() *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "vuls <command>",
|
||||
Short: "Vuls",
|
||||
Long: "Vulnerability Scanner: Vuls",
|
||||
SilenceErrors: true,
|
||||
SilenceUsage: true,
|
||||
Example: heredoc.Doc(`
|
||||
$ vuls config init
|
||||
$ vuls db fetch
|
||||
$ vuls scan
|
||||
$ vuls detect
|
||||
$ vuls report
|
||||
$ vuls tui
|
||||
`),
|
||||
}
|
||||
|
||||
cmd.AddCommand(configCmd.NewCmdConfig())
|
||||
cmd.AddCommand(dbCmd.NewCmdDB())
|
||||
cmd.AddCommand(detectCmd.NewCmdDetect())
|
||||
cmd.AddCommand(reportCmd.NewCmdReport())
|
||||
cmd.AddCommand(scanCmd.NewCmdScan())
|
||||
cmd.AddCommand(serverCmd.NewCmdServer())
|
||||
cmd.AddCommand(tuiCmd.NewCmdTUI())
|
||||
cmd.AddCommand(versionCmd.NewCmdVersion())
|
||||
|
||||
return cmd
|
||||
}
|
||||
Reference in New Issue
Block a user