cmd

package
v0.0.0-...-3d0adf2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

* @Author: domchan * @Date: 2018-12-28 15:30:41 * @Last Modified by: domchan * @Last Modified time: 2018-12-28 15:31:43

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(rootCmd *cobra.Command)

AddFlags adds all command line flags to the given command.

func GratefulQuit

func GratefulQuit() <-chan struct{}

GratefulQuit returns a chan for blocking, which is closed if the program exits

func PrintFlags

func PrintFlags(flags *pflag.FlagSet)

PrintFlags logs the flags in the flagset

func PrintSections

func PrintSections(w io.Writer, name string, flags *pflag.FlagSet, cols int)

PrintSections prints information for all startup parameters

func WordSepNormalizeFunc

func WordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName

WordSepNormalizeFunc change all "_" to "-"

Types

This section is empty.

Jump to

Keyboard shortcuts

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