download

package
v2.15.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDownloadCommand

func GetDownloadCommand(fs afero.Fs, command Command) (cmd *cobra.Command)

Types

type Command

type Command interface {
	DownloadConfigsBasedOnManifest(fs afero.Fs, cmdOptions downloadCmdOptions) error
	DownloadConfigs(fs afero.Fs, cmdOptions downloadCmdOptions) error
}

Command is used to test the CLi commands properly without executing the actual monaco download.

The actual implementations are in the DefaultCommand struct.

type DefaultCommand

type DefaultCommand struct{}

DefaultCommand is used to implement the Command interface.

func (DefaultCommand) DownloadConfigs

func (d DefaultCommand) DownloadConfigs(fs afero.Fs, cmdOptions downloadCmdOptions) error

func (DefaultCommand) DownloadConfigsBasedOnManifest

func (d DefaultCommand) DownloadConfigsBasedOnManifest(fs afero.Fs, cmdOptions downloadCmdOptions) error

Jump to

Keyboard shortcuts

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