gitops

package
v0.4.27 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TrimGitURLSuffix

func TrimGitURLSuffix(url string) string

remove any trailing git tokens to make comparison less likely to fail

Types

type RepositoryOptions

type RepositoryOptions struct {
	OptionPrefix string
	GitCloneURL  string
	Dir          string
}

RepositoryOptions options to specify the environment git repository

func (*RepositoryOptions) AddFlags

func (o *RepositoryOptions) AddFlags(cmd *cobra.Command, optionsPrefix string)

AddFlags adds the CLI flags to this object

type TextFilter

type TextFilter struct {
	Includes []string
	Excludes []string
}

TextFilter filters text

func (*TextFilter) AddFlags

func (o *TextFilter) AddFlags(cmd *cobra.Command, optionPrefix, name string)

Jump to

Keyboard shortcuts

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