cli

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package cli wires kage's command surface: the cobra tree, the global flags, and the fang-rendered help and errors. The actual work lives in the clone, browser, sanitize, asset, and urlx packages; this layer only parses flags and prints progress.

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "dev"
	Commit  = "none"
	Date    = "unknown"
)

Build metadata, stamped via -ldflags at release time. goreleaser targets github.com/tamnd/kage/cli.{Version,Commit,Date}.

Functions

func Execute

func Execute(ctx context.Context) int

Execute builds the root command and runs it through fang. main passes the signal-aware context so Ctrl-C cancels the in-flight clone and flushes resume state. It returns the process exit code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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