fleet/ee/fleetctl/updates_windows.go
2021-11-18 18:37:29 -08:00

25 lines
740 B
Go

//go:build windows
// +build windows
package eefleetctl
import (
"errors"
"github.com/urfave/cli/v2"
)
func UpdatesCommand() *cli.Command {
// Update management is disabled on Windows because file permissions need to be very particular
// and the Windows permission model is vastly different from the Unix model. Instead, recommend
// the user manages updates from Linux.
return &cli.Command{
Name: "updates",
Usage: "Manage client updates",
Description: "Update management is not supported on Windows. Please use a Linux environment to continue.",
Before: func(*cli.Context) error {
return errors.New("Update management is not supported on Windows. Please use a Linux environment to continue.")
},
}
}