cli

package
v0.14.8 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package cli provides the command-line interface layer for ar2. It parses commands and flags with cobra and delegates the work to the controller packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, logger *slogutil.Logger, env *cobrautil.Env) error

Run creates and executes the ar2 CLI application.

Types

This section is empty.

Directories

Path Synopsis
Package add implements the 'ar2 add' command.
Package add implements the 'ar2 add' command.
Package consolidate implements the 'ar2 consolidate' command.
Package consolidate implements the 'ar2 consolidate' command.
Package flag defines the flags shared by ar2's commands.
Package flag defines the flags shared by ar2's commands.
Package identities tells a registry client which id each package is kept under.
Package identities tells a registry client which id each package is kept under.
Package index implements the 'ar2 index' command.
Package index implements the 'ar2 index' command.
Package initcmd implements the 'ar2 init' command.
Package initcmd implements the 'ar2 init' command.
Package regenerate implements the 'ar2 regenerate' command.
Package regenerate implements the 'ar2 regenerate' command.
Package remove implements the 'ar2 remove' command.
Package remove implements the 'ar2 remove' command.
Package rename implements the 'ar2 rename' command.
Package rename implements the 'ar2 rename' command.
Package rewrite implements the 'ar2 rewrite' command.
Package rewrite implements the 'ar2 rewrite' command.
Package run implements the 'ar2 run' command.
Package run implements the 'ar2 run' command.
Package show implements the 'ar2 show' command.
Package show implements the 'ar2 show' command.
Package state implements the 'ar2 state' command.
Package state implements the 'ar2 state' command.
Package statefile reads and writes ar2's state where the commands keep it.
Package statefile reads and writes ar2's state where the commands keep it.
Package test implements the 'ar2 test' command.
Package test implements the 'ar2 test' command.
Package tidy implements the 'ar2 tidy' command.
Package tidy implements the 'ar2 tidy' command.
Package token finds the token of the ordinary GitHub client and builds the clients ar2 uses beside it.
Package token finds the token of the ordinary GitHub client and builds the clients ar2 uses beside it.
Package validatedefinition implements the 'ar2 validate-definition' command.
Package validatedefinition implements the 'ar2 validate-definition' command.
Package validateindex implements the 'ar2 validate-index' command.
Package validateindex implements the 'ar2 validate-index' command.

Jump to

Keyboard shortcuts

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