Documentation
¶
Overview ¶
Package watch provides terminal output functions for the watch command.
Index ¶
- func ApplyFailed(cmd *cobra.Command, updateType string, err error)
- func ApplySuccess(cmd *cobra.Command, updateType, content string)
- func CloseLogError(cmd *cobra.Command, err error)
- func DryRun(cmd *cobra.Command)
- func DryRunPreview(cmd *cobra.Command, updateType, content string)
- func Separator(cmd *cobra.Command)
- func StopHint(cmd *cobra.Command)
- func Watching(cmd *cobra.Command)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyFailed ¶
ApplyFailed prints a failure message for an update that could not be applied.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
- updateType: the context update type.
- err: the apply error.
func ApplySuccess ¶
ApplySuccess prints a success message for an applied update.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
- updateType: the context update type.
- content: the update content.
func CloseLogError ¶
CloseLogError prints a log file close error.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
- err: the close error.
func DryRun ¶
DryRun prints the dry-run notice.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
func DryRunPreview ¶
DryRunPreview prints a dry-run preview of an update that would be applied.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
- updateType: the context update type.
- content: the update content.
func Separator ¶
Separator prints a blank line for visual separation.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.