cli

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package cli は mdots のコマンド骨格を定義する。

CLIフレームワークの最終採用は urfave/cli v3(宣言ツリーで push/pull と --target/--dry-run/--color を定義する)。

CLI表面(help/version/unknown/usage時の文面・exit)は枠組み既定に寄せる。 内部実行は app 直接呼出とし、エントリは薄く保つ.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string, cwd, version string, stdout, stderr io.Writer) int

Run は CLI表面の入口である。args は os.Args[1:] 相当、cwd は実行ディレクトリ。 戻り値はプロセスの exit code。 フラグ解釈・help/version/unknown の表面は枠組み既定に任せ、 空値拒否は Flag.Validator、余剰引数拒否は Before に寄せる。 位置引数の不足・--color依存など本質検査だけを Action 側に残す。

Types

This section is empty.

Jump to

Keyboard shortcuts

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