cli

package
v0.1.27 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package cli 装配 nexusctl 命令行应用。

L2 | 父级: internal(L1 见 AGENTS.md)

成员清单:

  • app.go:New 创建 CLI 应用。
  • services.go:按命令域延迟创建服务,避免 help 等命令拉起全量后端依赖。
  • automation*.go:自动化任务的查询、变更、运行与运维命令。
  • skill.go / skill_agent.go / skill_external.go:技能目录、Agent 安装与来源管理命令。
  • 其余领域文件:agent / auth / channel / connector / conversation / emotion / imagegen / launcher / room / session / workspace 命令域。
  • output.go / flag_int_pointer.go:输出格式与 flag helper。

[PROTOCOL]: 变更时更新此头部,然后检查父级入口 AGENTS.md(L1)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitCode

func ExitCode(err error) int

func New

func New(cfg config.Config) (*cobra.Command, error)

New 创建 CLI 应用。

func RequestedJSON

func RequestedJSON(args []string) bool

func WriteCommandError

func WriteCommandError(w io.Writer, err error, jsonMode bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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