cipd

package
v0.0.0-...-c8d90df Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ensure

func Ensure(ctx context.Context, c *http.Client, workdir string, forceCopyInstallMode bool, pkgs ...*cipd.Package) error

Ensure installs the given CIPD packages.

func EnsureFromFlags

func EnsureFromFlags(ctx context.Context, c *http.Client, workdir string, f Flags, forceCopyInstallMode bool) error

EnsureFromFlags installs the CIPD packages requested using the given flags.

func GetPackages

func GetPackages(f Flags) ([]*cipd.Package, error)

GetPackages creates a slice of cipd.Package from the Flags.

Types

type Flags

type Flags *[]string

func SetupFlags

func SetupFlags(fs *flag.FlagSet) Flags

SetupFlags initializes command-line flags used by this package. If a FlagSet is not provided, then these become top-level CommandLine flags.

Jump to

Keyboard shortcuts

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