diff --git a/internal/cmd/callgraph/callgraph.go b/internal/cmd/callgraph/callgraph.go index 70a1ed56..c7ba6dd8 100644 --- a/internal/cmd/callgraph/callgraph.go +++ b/internal/cmd/callgraph/callgraph.go @@ -26,10 +26,10 @@ func NewCallgraphCmd(generator callgraph.IGenerator) *cobra.Command { cmd := &cobra.Command{ Use: "callgraph [path]", Short: "Generate a static call graph for the given directory and subdirectories", - Long: `Generate a static call graph for a project. If a directory is inputted all manifest files without a lock file are resolved. -The command consists of two main parts, Build and Callgraph. -Build: build the project and resolve dependencies. In this step, all necessary .class files are created. -Callgraph: generate the static call graph using debricked Vulnerable Functionality. + Long: `Generate a static call graph for a project. If a directory is inputted, all manifest files without a lock file are resolved. +The command consists of two main parts: build and callgraph. +Build: Build the project and resolve dependencies. In this step, all necessary .class files are created. +Callgraph: Generate the static call graph using debricked Vulnerable Functionality. The full documentation is available here https://debricked.com/docs/integrations/cli.html#debricked-cli @@ -57,7 +57,7 @@ Special Terms | Meaning Example: $ debricked files resolve . `+exampleFlags) cmd.Flags().BoolVar(&buildDisabled, NoBuildFlag, false, `Do not automatically build all source code in the project to enable call graph generation. -This option requires a pre-built project, for more detailed documentation on Vulnerable Functionality visit our portal: +This option requires a pre-built project. For more detailed documentation on Vulnerable Functionality, visit our portal: https://portal.debricked.com/vulnerability-management-43/how-do-i-enable-the-vulnerable-functionality-246`) cmd.Flags().IntVar(&generateTimeout, GenerateTimeoutFlag, 60*60, "Timeout (in seconds) on call graph generation.") diff --git a/internal/cmd/scan/scan.go b/internal/cmd/scan/scan.go index 69a14858..30130473 100644 --- a/internal/cmd/scan/scan.go +++ b/internal/cmd/scan/scan.go @@ -89,8 +89,8 @@ $ debricked scan . `+exampleFlags) cmd.Flags().BoolVar(&noResolve, NoResolveFlag, false, `disables resolution of manifest files that lack lock files. Resolving manifest files enables more accurate dependency scanning since the whole dependency tree will be analysed. For example, if there is a "go.mod" in the target path, its dependencies are going to get resolved onto a lock file, and latter scanned.`) cmd.Flags().BoolVar(&callgraph, CallGraphFlag, false, `Enables call graph generation during scan.`) - cmd.Flags().IntVar(&callgraphUploadTimeout, CallGraphUploadTimeoutFlag, 10*60, "Sets a timeout (in seconds) on call graph upload.") - cmd.Flags().IntVar(&callgraphGenerateTimeout, CallGraphGenerateTimeoutFlag, 60*60, "Sets a timeout (in seconds) on call graph generation.") + cmd.Flags().IntVar(&callgraphUploadTimeout, CallGraphUploadTimeoutFlag, 10*60, "Set a timeout (in seconds) on call graph upload.") + cmd.Flags().IntVar(&callgraphGenerateTimeout, CallGraphGenerateTimeoutFlag, 60*60, "Set a timeout (in seconds) on call graph generation.") viper.MustBindEnv(RepositoryFlag) viper.MustBindEnv(CommitFlag)