cmdutil

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package server implements utilities for working with spf13/cobra commands

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFlagBool

func GetFlagBool(cmd *cobra.Command, name string) (v bool)

GetFlagBool fetches the named flag from cmd and fails on error

func GetFlagDuration

func GetFlagDuration(cmd *cobra.Command, name string) (v time.Duration)

GetFlagDuration fetches the named flag from cmd and fails on error

func GetFlagString

func GetFlagString(cmd *cobra.Command, name string) (v string)

GetFlagString fetches the named flag from cmd and fails on error

Types

This section is empty.

Jump to

Keyboard shortcuts

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