authcli

package
v0.13.4-beta.4 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package authcli implements the `graywolf auth` subcommand tree: set-password, list-users, and delete-user. It is a separate package so the main dispatch shim stays tiny; the auth CLI has its own flag set and does not share any global state with the normal service-running path.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string, logger *slog.Logger, buildVersion string) error

Run dispatches one of the three auth subcommands. args is the slice after "graywolf auth", i.e. os.Args[2:]. buildVersion is the linker-injected main.Version — plumbed through so CLI-created users get seeded with the running build version for LastSeenReleaseVersion and don't see the release-notes backlog on first login. Errors are returned rather than printed/os.Exit'd so the calling shim controls the exit code in one place.

Types

This section is empty.

Jump to

Keyboard shortcuts

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