cli

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 50 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

Package cli wires the apic commands together.

Index

Constants

This section is empty.

Variables

View Source
var SkillDirs = []string{filepath.Join(".claude", "skills"), filepath.Join(".agents", "skills")}

SkillDirs are where `apic skill install` and `apic init` put the skill, relative to the project: the directory Claude Code reads, and the one the Agent Skills ecosystem (Codex, Cursor and the `skills` CLI) shares.

View Source
var Version = "dev"

Version is set at build time via -ldflags.

Functions

func Main

func Main(args []string) int

Main runs the CLI and returns the process exit code.

Types

type App

type App struct {
	Root   *cobra.Command
	Stdout io.Writer
	Stderr io.Writer
	Stdin  io.Reader
	// contains filtered or unexported fields
}

App holds the command tree and IO streams (swappable for tests).

func New

func New() *App

New builds the command tree.

func (*App) Execute

func (a *App) Execute(ctx context.Context, args []string) int

Execute runs the command tree with args (excluding the program name).

Jump to

Keyboard shortcuts

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