package
Version:
v0.8.0
Opens a new window with list of versions in this module.
Published: Mar 24, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package err provides error and warning output functions for terminal display.
WarnFile prints a non-fatal file operation warning to stderr.
Parameters:
- cmd: Cobra command whose stderr stream receives the message. Nil is a no-op.
- path: path of the file that caused the warning.
- err: the underlying error.
WithError writes a prefixed error message to the command's stderr stream.
Parameters:
- cmd: Cobra command whose stderr stream receives the message. Nil is a no-op.
- err: the error to display after the "Error: " prefix.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.