Help us shape the future of Go! Take the 2026 Go Developer Survey

cli

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const OpenSourceBuild = false

OpenSourceBuild 开源构建开关:默认关闭,Web 端"关于"弹窗不展示项目链接。 与 buildinfo_opensource.go 中定义互斥,经 `go build -tags opensource` 切换为 true。

Variables

View Source
var BuildTime = ""

BuildTime 构建时间(Makefile 构建时经 -ldflags 注入,默认空)

View Source
var CommitID = ""

CommitID 构建对应的 git commit 短哈希(release 打包时经 -ldflags 注入,默认空)

View Source
var Version = "dev"

Version 构建版本号(release 打包时经 -ldflags 注入,默认 dev)

Functions

This section is empty.

Types

type WebArgs

type WebArgs struct {
	Host       string
	Port       int
	Allow      string
	NoAuth     bool
	NoBrowser  bool
	DataDir    string
	ConfigFile string
	Debug      bool // 全局 debug 日志开关(等效 config 顶层 debug: true)
}

WebArgs Web 启动参数(未执行 CLI 子命令时由 Execute 返回)

func Execute

func Execute() *WebArgs

Execute CLI 入口:返回非 nil 表示需启动 Web 服务;CLI 子命令执行完直接退出

Directories

Path Synopsis
Package sqlcmd 提供 dqex sql 子命令:交互式 SQL 终端 + JSON 输出。
Package sqlcmd 提供 dqex sql 子命令:交互式 SQL 终端 + JSON 输出。

Jump to

Keyboard shortcuts

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