cli

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 92 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 is the cobra command surface. The binary is authama (brand.Command). sshmgr, the name it shipped under before 0.1.1, is no longer built.

Run on its own, on a terminal, it opens the web UI (as `authama serve`). The tree has two feature groups and a few commands that serve both:

authama ssh <verb>          SSH keys, profiles, hosts and config
authama token|auth <verb>   package-manager and git auth tokens
authama doctor|init|migrate|history|serve|settings|version

Every group answers `help [verb]`, as the root does.

Every SSH verb is also kept, hidden, at the top level, so `authama deploy` and every script and rendered ProxyCommand written before the groups existed still run. TestTheCommandNamesAreDistinct keeps the tree free of names a reader (or cobra) could confuse.

The verb set is pinned against the implementation it replaced by TestTheCommandSurfaceMatchesTheOneItReplaced, which is what makes "no verb was lost" a checked claim rather than a recollection.

Index

Constants

This section is empty.

Variables

View Source
var DeliverEvery = 15 * time.Second

DeliverEvery is how often `serve` sends what is due, with webhooks on.

Functions

func Execute

func Execute()

Execute runs the root command and is the only place in the binary that maps an outcome to an 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