cli

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package cli holds the LadyM command-line interface (cobra-based).

remote.go implements the CLI's --server mode: instead of opening a local engine, the data commands call a `ladym serve --http` data-plane (the api package) over HTTP. The HTTP half is a thin shell over the Go SDK (client/golang) — this file keeps only the CLI-specific parts: flag/env credential resolution, per-command timeouts, and translation of SDK errors into the CLI's historical single-line messages. Stdout stays byte-identical to the local path — the commands share the same print helpers; only the "fetch the result" half differs.

user.go implements the `ladym user` subcommand group: local management of the users table backing the HTTP data-plane's Basic auth. The commands talk to the local store directly (same engine path as the other data commands) — user management never goes through HTTP, so it works before auth is bootstrapped.

Passwords are never accepted as command-line arguments or printed/logged: they come from an interactive two-prompt read (TTY only) or from --password-env VAR indirection, and only the bcrypt hash is persisted.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute runs the CLI and exits non-zero on error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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