cli

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: AGPL-3.0 Imports: 23 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 parses the command line of the muster binary and runs its subcommands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BridgeCheckCommand

func BridgeCheckCommand(ctx context.Context, args []string, stdout, stderr io.Writer) int

BridgeCheckCommand is `muster bridge check` with the arguments after check; the secret-leak probe of lint 5 runs it. A broken invocation — no URL or one that is not a bridge's base URL, a missing required flag, or a token or push secret file that cannot be read or holds more than the secret — exits 2 before any request, so that it never looks like a broken bridge. The token and the push secret appear in no line it prints, only a push secret it generated.

func Main

func Main() int

func RotateKeyCommand

func RotateKeyCommand(ctx context.Context, args []string, opts runtime.Options,
	rotate func(context.Context, runtime.Options, runtime.KeyRotation) (keyring.Rotated, error), stderr io.Writer,
) int

RotateKeyCommand is `muster secrets rotate-key --activate <id> --actor <name>` with the options opts and the activation rotate; the secret-leak probe of lint 5 runs it with an activation that needs no database. Without --activate or --actor, or with arguments after the flags, it exits 2 before rotate, so nothing changes. A refusal — a live replica that lacks the key, or a key this process does not hold — exits 1, as does any other failure.

func Run

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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