cli

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package cli 实现 dbm 的全部 cobra 命令。

设计原则:命令层保持「薄」。每个命令只做三件事:

  1. 解析 flag
  2. 经由 NewConn 拿到 driver.Conn(带写守卫)
  3. 调用 driver.Conn 的方法 + 用 output 渲染

业务逻辑(连接、元数据、SQL)都在 driver / oracle 层,便于复用与测试。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *cobra.Command

New 构建根命令及其所有子命令。 import 的副作用(driver 自注册)在 main 里通过空导入触发。

Types

This section is empty.

Directories

Path Synopsis
Package output 实现查询结果的多种格式化输出。
Package output 实现查询结果的多种格式化输出。

Jump to

Keyboard shortcuts

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