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 ¶
- func New(version string) *cobra.Command
- func NewCloudCmd() *cobra.Command
- func NewDBCmd() *cobra.Command
- func NewHostCmd() *cobra.Command
- func NewInstallCmd() *cobra.Command
- func NewLicenseCmd() *cobra.Command
- func NewLinuxCmd() *cobra.Command
- func NewMCPCmd() *cobra.Command
- func NewPgCmd() *cobra.Command
- func NewPolicyCmd() *cobra.Command
- func NewProvisionCmd() *cobra.Command
- func NewRagCmd() *cobra.Command
- func NewServeCmd() *cobra.Command
- func NewTargetCmd() *cobra.Command
- func ParseNamedParams(args []string) (map[string]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCloudCmd ¶
NewCloudCmd creates the "cloud" subcommand group for cloud infrastructure provisioning.
func NewHostCmd ¶
NewHostCmd creates the "host" parent command for multi-distro host operations.
func NewInstallCmd ¶
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 ¶
NewLicenseCmd creates the "license" subcommand group.
Real implementation lives in license.go (pkg/license-backed).
func NewLinuxCmd ¶
NewLinuxCmd creates the "linux" parent command for Oracle Linux host operations.
func NewPolicyCmd ¶
NewPolicyCmd creates the "policy" subcommand group for compliance scanning.
func NewProvisionCmd ¶
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 ¶
NewRagCmd creates the "rag" subcommand group for AI retrieval-augmented generation.
func NewServeCmd ¶
NewServeCmd creates the "serve" subcommand for the REST API.
func NewTargetCmd ¶
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.
Types ¶
This section is empty.