cmdutils

package
v0.0.0-...-e20b040 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDTClient

func CreateDTClient(env manifest.EnvironmentDefinition, dryRun bool) (client.Client, error)

CreateDTClient is driven by data given through a manifest.EnvironmentDefinition to create an appropriate client.Client.

In case when flag dryRun is true this factory returns the client.DummyClient.

func GetEnvFromManifest

func GetEnvFromManifest(fs afero.Fs, manifestPath string, specificEnvironmentName string) (env manifest.EnvironmentDefinition, err error)

func GetFilePaths

func GetFilePaths(fileName string) (string, string, error)

func GetManifest

func GetManifest(fs afero.Fs, manifestPath string) (manifest.Manifest, error)

func SilenceUsageCommand

func SilenceUsageCommand() func(cmd *cobra.Command, args []string)

SilenceUsageCommand gives back a command that is just configured to skip printing of usage info. We use it as a PreRun hook to enforce the behavior of printing usage info when the command structure given by the user is faulty

func VerifyEnvironmentGeneration

func VerifyEnvironmentGeneration(envs manifest.Environments) bool

VerifyEnvironmentGeneration takes a manifestEnvironments map and tries to verify that each environment can be reached using the configured credentials

Types

This section is empty.

Jump to

Keyboard shortcuts

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