root

package
v0.0.0-...-dac6614 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package root provides the exported Cobra root command constructor. Downstream repos (dbx-ee, dbx-agent) import root.New(version) to extend the command tree before calling Execute().

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) *cobra.Command

New returns the Cobra root command initialised with the given version string.

func NewCloudCmd

func NewCloudCmd() *cobra.Command

NewCloudCmd creates the "cloud" subcommand group for cloud infrastructure provisioning.

func NewDBCmd

func NewDBCmd() *cobra.Command

NewDBCmd creates the "db" parent command for Oracle database operations.

func NewHostCmd

func NewHostCmd() *cobra.Command

NewHostCmd creates the "host" parent command for multi-distro host operations.

func NewInstallCmd

func NewInstallCmd() *cobra.Command

NewInstallCmd returns the `provision install` parent subcommand. Each leaf delegates to a function in dbx/pkg/provision/install/.

License gate: every leaf below calls license.RequireBundle("provision") at the top of its RunE. Bundle gates implicitly require Enterprise tier (see pkg/license/require.go). #27 / ADR-0094.

func NewLicenseCmd

func NewLicenseCmd() *cobra.Command

NewLicenseCmd creates the "license" subcommand group.

Real implementation lives in license.go (pkg/license-backed).

func NewLinuxCmd

func NewLinuxCmd() *cobra.Command

NewLinuxCmd creates the "linux" parent command for Oracle Linux host operations.

func NewMCPCmd

func NewMCPCmd() *cobra.Command

NewMCPCmd creates the "mcp" subcommand for the MCP server.

func NewPgCmd

func NewPgCmd() *cobra.Command

NewPgCmd creates the "pg" parent command for PostgreSQL database operations.

func NewPolicyCmd

func NewPolicyCmd() *cobra.Command

NewPolicyCmd creates the "policy" subcommand group for compliance scanning.

func NewProvisionCmd

func NewProvisionCmd() *cobra.Command

NewProvisionCmd returns the parent cobra.Command for all `dbxcli provision …` subcommands.

Subcommands:

  • install Phase D install primitives (grid, dbhome, root-sh, asmca, netca, asm-label)
  • dbca Database creation/configuration (create-db, …)
  • pdb PDB lifecycle (create, …)

Per ADR-0094, all provision actions require Enterprise tier; the gate is enforced at each leaf subcommand's RunE (not here, so `--help` works without a license).

func NewRagCmd

func NewRagCmd() *cobra.Command

NewRagCmd creates the "rag" subcommand group for AI retrieval-augmented generation.

func NewServeCmd

func NewServeCmd() *cobra.Command

NewServeCmd creates the "serve" subcommand for the REST API.

func NewTargetCmd

func NewTargetCmd() *cobra.Command

NewTargetCmd creates the "target" subcommand group.

Targets are persisted as YAML files under ~/.dbx/targets/<name>.yaml (mode 0600). The file format is the same as pkg/core/target.Target.

func ParseNamedParams

func ParseNamedParams(args []string) (map[string]string, error)

ParseNamedParams parses emcli-style key=value arguments.

Types

This section is empty.

Jump to

Keyboard shortcuts

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