flagparser

package
v0.0.0-...-2f05a08 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2017 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

func ParseAddSecret

func ParseAddSecret(cmd *cobra.Command, spec *api.ServiceSpec, flagName string) error

ParseAddSecret validates secrets passed on the command line

func ParseRemoveSecret

func ParseRemoveSecret(cmd *cobra.Command, spec *api.ServiceSpec, flagName string) error

ParseRemoveSecret removes a set of secrets from the task spec's secret references

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