feat: init nightly vuls for blackhat

This commit is contained in:
MaineK00n
2022-11-15 11:26:26 +09:00
parent 1d97e91341
commit 3605645ff6
234 changed files with 6172 additions and 54872 deletions

44
pkg/cmd/root/root.go Normal file
View 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
}