cli

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Overview

Package cli wires csm commands to the internal session and audit services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd builds the top-level csm command and registers all subcommands.

func WithExitCode

func WithExitCode(err error, code int) error

WithExitCode wraps an error with a process exit code for main() handling.

Types

type ExitError

type ExitError struct {
	Code int
	Err  error
}

ExitError carries a user-facing error plus an intended process exit code.

func (*ExitError) Error

func (e *ExitError) Error() string

func (*ExitError) ExitCode

func (e *ExitError) ExitCode() int

func (*ExitError) Unwrap

func (e *ExitError) Unwrap() error

Jump to

Keyboard shortcuts

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