opt

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDirectoryFlags added in v0.41.0

func AddDirectoryFlags(cmd *cobra.Command, o *DirectoryOption)

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 MarkFileAndDirFlagsAsXOR added in v0.44.0

func MarkFileAndDirFlagsAsXOR(cmd *cobra.Command)

func MarkFileFlagAsMandatory

func MarkFileFlagAsMandatory(cmd *cobra.Command)

Types

type DirectoryOption added in v0.41.0

type DirectoryOption struct {
	Directory string
}

func (*DirectoryOption) Validate added in v0.44.0

func (o *DirectoryOption) Validate() error

type FileOption

type FileOption struct {
	File string
}

func (*FileOption) Validate added in v0.44.0

func (o *FileOption) Validate() error

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