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 ¶
ExecuteWithFang executes a cobra command using fang with standard katzenpost options. This reduces boilerplate across all CLI tools by providing a common execution pattern.
func TruncatePEMForLogging ¶ added in v0.0.58
TruncatePEMForLogging truncates a PEM string to first two lines only This is useful for logging PEM keys in a more concise format while preserving the header and first line of data for debugging purposes.
Types ¶
This section is empty.