Back to godoc.org

Package crud

v0.0.3
Latest Go to latest

The latest major version is .

Published: Aug 4, 2020 | License: Apache-2.0 | Module: github.com/ns1/pulsar-routemap

Index

func AddCommands

func AddCommands(parentCmd *cobra.Command, globals *config.CommandLineGlobals)

func RunCreateOrReplaceCommand

func RunCreateOrReplaceCommand(opts *Options) error

func RunDeleteCommand

func RunDeleteCommand(opts *Options) error

func RunListCommand

func RunListCommand(opts *Options) error

type Options

type Options struct {
	Globals *config.CommandLineGlobals

	InputFilename string
	SkipValidate  bool
	MapID         int
	Name          string
	RawOutput     bool // for list command only.
}

Options contains options (command line flags) that are common to all CRUD commands.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier