Skip to content

Commit

Permalink
add list provs back in
Browse files Browse the repository at this point in the history
  • Loading branch information
eemcmullan committed Nov 15, 2024
1 parent c9792e0 commit bbccaac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ func NewAnalyzeCmd(log logr.Logger) *cobra.Command {
// ***** RUN CONTAINERLESS MODE *****

if analyzeCmd.runLocal {
if analyzeCmd.listProviders {
log.Info("\n containerless analysis mode set; only java provider supported")
return nil
}
log.Info("\n --run-local set. running analysis in containerless mode")
if analyzeCmd.listSources || analyzeCmd.listTargets {
err := analyzeCmd.listLabelsContainerless(ctx)
Expand Down Expand Up @@ -376,7 +380,7 @@ func NewAnalyzeCmd(log logr.Logger) *cobra.Command {
analyzeCommand.Flags().StringArrayVarP(&analyzeCmd.depFolders, "dependency-folders", "d", []string{}, "directory for dependencies")
analyzeCommand.Flags().StringVar(&analyzeCmd.overrideProviderSettings, "override-provider-settings", "", "override the provider settings, the analysis pod will be run on the host network and no providers will be started up")
analyzeCommand.Flags().StringArrayVar(&analyzeCmd.provider, "provider", []string{}, "specify which provider(s) to run")
analyzeCommand.Flags().BoolVar(&analyzeCmd.runLocal, "run-local", true, "run Java anlysis in containerless mode")
analyzeCommand.Flags().BoolVar(&analyzeCmd.runLocal, "run-local", true, "run Java analysis in containerless mode")

return analyzeCommand
}
Expand Down

0 comments on commit bbccaac

Please sign in to comment.