opt

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFileFlags

func AddFileFlags(cmd *cobra.Command, o *FileOption)

func AddOutputFlags

func AddOutputFlags(cmd *cobra.Command, o *OutputOption)

func AddProjectFlags

func AddProjectFlags(cmd *cobra.Command, o *ProjectOption)

func MarkFileFlagAsMandatory

func MarkFileFlagAsMandatory(cmd *cobra.Command)

Types

type FileOption

type FileOption struct {
	File string
}

type OutputOption

type OutputOption struct {
	Output string
}

func (*OutputOption) Complete

func (o *OutputOption) Complete() error

type ProjectOption

type ProjectOption struct {
	Project string
}

func (*ProjectOption) Complete

func (o *ProjectOption) Complete() error

Complete will fill the attribute ProjectOption.Project.

Jump to

Keyboard shortcuts

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