mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
25 lines
740 B
Go
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.")
|
|
},
|
|
}
|
|
}
|