fleet/cmd/fleetctl/fleetctl.go
Zach Wasserman ff26a614ef
MVP of fleetctl preview command (#51)
This adds a `fleetctl preview` command to fleetctl that will download
and start https://github.com/fleetdm/osquery-in-a-box. This is
potentially the easiest way for a user to try out Fleet.
2020-11-18 13:16:18 -08:00

52 lines
869 B
Go

package main
import (
"math/rand"
"time"
"github.com/kolide/kit/version"
"github.com/urfave/cli"
)
const (
defaultFileMode = 0600
)
func init() {
rand.Seed(time.Now().UnixNano())
}
func main() {
app := cli.NewApp()
app.Name = "fleetctl"
app.Usage = "CLI for operating Kolide Fleet"
app.Version = version.Version().Version
cli.VersionPrinter = func(c *cli.Context) {
version.PrintFull()
}
app.Commands = []cli.Command{
applyCommand(),
deleteCommand(),
setupCommand(),
loginCommand(),
logoutCommand(),
queryCommand(),
getCommand(),
cli.Command{
Name: "config",
Usage: "Modify Fleet server connection settings",
Subcommands: []cli.Command{
configSetCommand(),
configGetCommand(),
},
},
convertCommand(),
goqueryCommand(),
userCommand(),
debugCommand(),
previewCommand(),
}
app.RunAndExitOnError()
}