package
Version:
v1.1.2
Opens a new window with list of versions in this module.
Published: Mar 21, 2026
License: MPL-2.0
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package neomacli provides a CLI harness for running neoma-based API servers
with graceful shutdown, signal handling, and customizable options.
WithOptions returns a cobra run function that extracts the parsed options
from the command context and passes them to f.
CLI is the interface for a runnable command-line application.
New creates a new CLI instance that parses the given options type from flags
and environment variables, then calls onParsed to set up the server.
type Hooks interface {
OnStart(func())
OnStop(func())
}
Hooks allows registering callbacks that run when the server starts and stops.
type Logger interface {
Println(args ...any)
}
Logger is the interface used by the CLI for printing status messages.
type Option func(*cliConfig)
Option is a functional option for configuring the CLI.
WithLogger returns an Option that sets the logger used by the CLI.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.