flags

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllLines bool

AllLines Set to true to display comments when listing

View Source
var Comment string

Comment Adds a comment to the entry for better identification later

View Source
var Section string

Section Is a named section with which to edit hosts in.

View Source
var Verbose bool

Verbose Set to true for verbose output on a given command.

Functions

func AddAllLinesFlag

func AddAllLinesFlag(command *cobra.Command)

AddAllLinesFlag Adds the all flag to a cobra command.

func AddCommentFlag

func AddCommentFlag(command *cobra.Command)

AddCommentFlag Adds the comment flag to a cobra command.

func AddSectionFlag

func AddSectionFlag(command *cobra.Command)

AddSectionFlag Adds the section flag to a cobra command.

func AddVerboseFlag

func AddVerboseFlag(command *cobra.Command)

AddVerboseFlag Adds the verbose flag to a cobra command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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