mirror of
https://github.com/k3s-io/k3s.git
synced 2026-05-28 04:34:19 -04:00
* Bump rootlesskit tov 1.1.1, last of the v1 line * Migrate to urfavecli v2 * Disable StringSlice seperattion Signed-off-by: Derek Nola <derek.nola@suse.com>
29 lines
568 B
Go
29 lines
568 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"errors"
|
|
"os"
|
|
|
|
"github.com/k3s-io/k3s/pkg/cli/cmds"
|
|
"github.com/k3s-io/k3s/pkg/cli/etcdsnapshot"
|
|
"github.com/k3s-io/k3s/pkg/configfilearg"
|
|
"github.com/sirupsen/logrus"
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
func main() {
|
|
app := cmds.NewApp()
|
|
app.Commands = []*cli.Command{
|
|
cmds.NewEtcdSnapshotCommands(
|
|
etcdsnapshot.Delete,
|
|
etcdsnapshot.List,
|
|
etcdsnapshot.Prune,
|
|
etcdsnapshot.Save,
|
|
),
|
|
}
|
|
|
|
if err := app.Run(configfilearg.MustParse(os.Args)); err != nil && !errors.Is(err, context.Canceled) {
|
|
logrus.Fatal(err)
|
|
}
|
|
}
|