watch

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package watch provides terminal output functions for the watch command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyFailed

func ApplyFailed(cmd *cobra.Command, updateType string, err error)

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

func ApplySuccess(cmd *cobra.Command, updateType, content string)

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

func CloseLogError(cmd *cobra.Command, err error)

CloseLogError prints a log file close error.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.
  • err: the close error.

func DryRun

func DryRun(cmd *cobra.Command)

DryRun prints the dry-run notice.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.

func DryRunPreview

func DryRunPreview(cmd *cobra.Command, updateType, content string)

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

func Separator(cmd *cobra.Command)

Separator prints a blank line for visual separation.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.

func StopHint

func StopHint(cmd *cobra.Command)

StopHint prints the Ctrl+C stop hint.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.

func Watching

func Watching(cmd *cobra.Command)

Watching prints the initial "watching" status line.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.

Types

This section is empty.

Jump to

Keyboard shortcuts

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