cli

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 31 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

appkit check —— 架构检查子命令的薄注册壳,全部实现见 internal/archcheck。

Package cli 是 appkit CLI 的子命令注册表与公共设施。

每个子命令一个文件,经 init 里的 register 挂载——新增命令不改本文件。

dev 子命令薄壳:flag 解析后转发 internal/scaffold。

gen 子命令薄壳:只做 flag 解析,实现全部在 internal/gen。

new 子命令薄壳:flag 解析后转发 internal/scaffold。

appkit outbox —— 死信运维子命令:列出死信(缺省动作)或按事件 ID 放回 投递队列。操作目标与实现见 outbox.DeadLetters。

appkit schema —— schema 文档子命令的薄注册壳,全部实现见 internal/schemadoc。

appkit sync:把规则集(lint 配置 + CI 引用)物化进目标仓库。实现在 ruleset 包。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(args []string) int

Main 分发子命令,返回进程退出码。

func Version

func Version() string

Version 返回 CLI 的模块版本(go install 时为 tag,源码构建为 devel)。

Types

type Command

type Command struct {
	Name    string
	Summary string
	Run     func(args []string) error
}

Command 是一个子命令。Run 收到的 args 已去掉命令名本身。

Jump to

Keyboard shortcuts

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