Documentation
¶
Overview ¶
Package ops contains shared operational helpers for CLI actions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfirmDelete ¶
ConfirmDelete asks the user to confirm delete action.
func ConfirmRestore ¶
ConfirmRestore asks the user to confirm restore action.
func IsInteractiveReader ¶
IsInteractiveReader checks whether reader is a terminal-like file descriptor.
Types ¶
type PreviewMode ¶
type PreviewMode string
PreviewMode controls pre-action preview behavior.
const ( PreviewFull PreviewMode = "full" PreviewSample PreviewMode = "sample" PreviewNone PreviewMode = "none" )
func ParsePreviewMode ¶
func ParsePreviewMode(v string) (PreviewMode, error)
ParsePreviewMode parses a preview mode string.
Click to show internal directories.
Click to hide internal directories.