common

package
v0.0.53 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package common provides shared utilities for katzenpost CLI tools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorHandlerWithUsage

func ErrorHandlerWithUsage(cmd *cobra.Command) fang.ErrorHandler

ErrorHandlerWithUsage creates a custom error handler that displays error messages followed by usage help for CLI argument errors. This provides better user experience by showing both the error and how to use the command correctly.

func ExecuteWithFang

func ExecuteWithFang(cmd *cobra.Command)

ExecuteWithFang executes a cobra command using fang with standard katzenpost options. This reduces boilerplate across all CLI tools by providing a common execution pattern.

Types

This section is empty.

Directories

Path Synopsis
Package config provides common configuration structures and utilities shared between courier and replica services.
Package config provides common configuration structures and utilities shared between courier and replica services.

Jump to

Keyboard shortcuts

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