cmd

package
v1.0.32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// VCSToolAzureServer represents the Azure server VCS tool name
	VCSToolAzureServer = "azureserver"
	// VCSToolAzureCloud represents the Azure cloud VCS tool name
	VCSToolAzureCloud = "azurecloud"
	// VCSToolBitbucket represents the Bitbucket VCS tool name
	VCSToolBitbucket = "bitbucket"
	// VCSToolBitbucketServer represents the Bitbucket server VCS tool name
	VCSToolBitbucketServer = "bitbucketserver"
	// VCSToolGitHub represents the Github VCS tool name
	VCSToolGitHub = "github"
	// VCSToolGitLab represents the Gitlab Cloud VCS tool name
	VCSToolGitLabCloud = "gitlabcloud"
	// VCSToolGitLab represents the Gitlab On-Prem VCS tool name
	VCSToolGitLabOnPrem = "gitlabonprem"
	// VCSToolGit represents the Git VCS tool name
	VCSToolGit = "git"
	// VCSToolGitHubEnterprise represents the GitHubEnterprise VCS tool name
	VCSToolGitHubEnterprise = "githubenterprise"
)
View Source
const (
	ExitCodeSuccess       = 0
	ExitCodeError         = 1
	ExitCodeWarning       = 2
	ExitCodeNotAuthorized = 100
	ExitCodeNegative      = -1
)

Variables

View Source
var (
	Version string
)

Functions

func Execute

func Execute(args []string)

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func TableWriter added in v1.0.22

func TableWriter(rows ...Row)

Types

type Product added in v1.0.22

type Product struct {
	// contains filtered or unexported fields
}

type Project added in v1.0.22

type Project struct {
	// contains filtered or unexported fields
}

type Row added in v1.0.22

type Row struct {
	Columns []string
}

type SBOMImport added in v1.0.22

type SBOMImport struct {
	// contains filtered or unexported fields
}

type Scan added in v1.0.22

type Scan struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL