Help us shape the future of Go! Take the 2026 Go Developer Survey

cli

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package cli implements the "config set-vault|get-vault|unset-vault" subcommand. RunConfig returns an exit code and writes to the given stdout/stderr writers instead of calling os.Exit or using the process's streams directly, so it stays a plain, easily testable function.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunConfig

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

RunConfig dispatches "sync82 config <subcommand> [args...]", where args holds the arguments after "config" and the subcommand is one of set-vault, get-vault or unset-vault. Normal output goes to stdout and diagnostics to stderr. It returns the process exit code: 0 on success, 1 for a failing subcommand, and 2 (usage error) for an unknown or missing subcommand, a missing set-vault path or unexpected arguments.

Types

This section is empty.

Jump to

Keyboard shortcuts

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