dry

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package dry implements the dry run flag for chronoctl commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flags

type Flags struct {
	DryRun bool
}

Flags is a struct that contains a dry run flag that is used by CLI commands to get user input

func NewFlags

func NewFlags() *Flags

NewFlags returns a new DryRunFlags struct

func (*Flags) AddFlags

func (d *Flags) AddFlags(cmd *cobra.Command)

AddFlags adds the dry run flag to a cobra command

Jump to

Keyboard shortcuts

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