download

package
v2.20.0-dev.91 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 39 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(ctx context.Context, fs afero.Fs, cmdOptions downloadCmdOptions) error
	DownloadConfigs(ctx context.Context, 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(ctx context.Context, fs afero.Fs, cmdOptions downloadCmdOptions) error

func (DefaultCommand) DownloadConfigsBasedOnManifest

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

Jump to

Keyboard shortcuts

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