dryrun

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package dryrun provides a way to print commands instead of running them.

Index

Constants

This section is empty.

Variables

View Source
var DryRun bool

DryRun is a flag to indicate whether the program is running in dry-run mode.

Functions

func IsCatToFileWriter

func IsCatToFileWriter(w io.Writer) (string, bool)

IsCatToFileWriter returns true if the writer is a cat to file writer.

func NewCatToFileWriter

func NewCatToFileWriter(name string) io.WriteCloser

NewCatToFileWriter returns a writer that prints the content to stdout.

func PrintMessage

func PrintMessage(format string, a ...any)

PrintMessage prints the message to stdout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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