flagparser

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2016 License: Apache-2.0 Imports: 16 Imported by: 30

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddServiceFlags

func AddServiceFlags(flags *pflag.FlagSet)

AddServiceFlags add all supported service flags to the flagset.

func Merge

func Merge(cmd *cobra.Command, spec *api.ServiceSpec, c api.ControlClient) error

Merge merges a flagset into a service spec.

Types

This section is empty.

Notes

Bugs

  • Cobra stringslice actually doesn't correctly handle comma separated values, so multiple flags aren't really supported. We'll have to replace StringSlice with a type that doesn't use the csv parser. This is good enough for now.

Jump to

Keyboard shortcuts

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