commands

package
v1.13.7 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: AGPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DocsCmd = &cobra.Command{
	Use:   "docs [output-dir]",
	Short: "Generate markdown documentation for devguard-scanner into output-dir (default: docs/scanner)",
	Args:  cobra.MaximumNArgs(1),
	RunE:  runDocs,
}
View Source
var LogsCmd = &cobra.Command{
	Use:   "logs",
	Short: "Analyze log files",
	Long: `Analyze log files from any devguard component.

Supported formats (auto detected, override with --format):

  api       devguard-api / scanner (zerolog console writer)
  kratos    ory kratos (logfmt)
  postgres  postgresql server log
  web       devguard-web (Next.js server output)

Levels are normalised to DBG/INF/WRN/ERR/FTL across all formats, so --level and
the errors and timeline subcommands behave identically whichever log you point
them at. Logs collected with "kubectl logs --timestamps" are also accepted; the
prefix supplies the timestamp, which is the only way to place the web log on a
timeline.`,
}
View Source
var ReleaseCICmd = &cobra.Command{
	Use:   "ci-components <tag>",
	Short: "Update, tag, and push devguard-ci-components (auto-detects latest scanner version)",
	Args:  cobra.ExactArgs(1),
	RunE:  runReleaseCI,
}
View Source
var ReleaseDevguardCmd = &cobra.Command{
	Use:   "devguard <tag>",
	Short: "Tag and push the devguard backend only",
	Args:  cobra.ExactArgs(1),
	RunE:  runReleaseDevguard,
}
View Source
var ReleaseDockerDeploymentCmd = &cobra.Command{
	Use:   "docker-deployment <tag>",
	Short: "Update devguard-docker-deployment, then commit and push",
	Args:  cobra.ExactArgs(1),
	RunE:  runReleaseDockerDeployment,
}
View Source
var ReleaseHelmChartCmd = &cobra.Command{
	Use:   "helm-chart <tag>",
	Short: "Update the Helm chart, then commit, push, and tag",
	Args:  cobra.ExactArgs(1),
	RunE:  runReleaseHelmChart,
}
View Source
var ReleaseK8sIntegrationCmd = &cobra.Command{
	Use:   "k8s-integration <tag>",
	Short: "Tag and push the devguard-k8s-image-inventory repo only",
	Args:  cobra.ExactArgs(1),
	RunE:  runReleaseK8sIntegration,
}
View Source
var ReleaseWebCmd = &cobra.Command{
	Use:   "web <tag>",
	Short: "Bump package.json, tag, and push devguard-web only",
	Args:  cobra.ExactArgs(1),
	RunE:  runReleaseWeb,
}

Functions

func NewLicensesCommand added in v1.9.3

func NewLicensesCommand() *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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