cmd

package
v1.2.0-beta Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MajorVersionsCmd = &cobra.Command{
	Use:     "majorversions",
	Aliases: []string{"v"},
	Short:   "List available majors versions (for driver_tools, custom_iso, addons)",
	Long:    "List available major versions to help query drives_tools, custom_isos and addons",
	Example: getMajorVersions,
	Run: func(cmd *cobra.Command, args []string) {
		majorVersions, err := api.GetMajorVersionsString(majorVersionsSlug)
		handleErrors(err)
		fmt.Println(majorVersions)
	},
}

versionsCmd represents the versions command

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type JsonOutput added in v1.1.0

type JsonOutput struct {
	EulaAccepted       bool                  `json:"eula_accepted"`
	EligibleToDownload bool                  `json:"eligible_to_download"`
	Version            string                `json:"version"`
	Files              []sdk.DownloadDetails `json:"files"`
}

Jump to

Keyboard shortcuts

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