2020-10-23 16:20:08 +02:00

30 lines
666 B
Go

// Copyright (c) 2020 TypeFox GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
package cmd
import (
"github.com/gitpod-io/gitpod/supervisor/pkg/supervisor"
"github.com/spf13/cobra"
)
var runCmdOpts struct {
NoTeardownCanary bool
}
var runCmd = &cobra.Command{
Use: "run",
Short: "starts the supervisor",
Run: func(cmd *cobra.Command, args []string) {
supervisor.Run()
},
}
func init() {
rootCmd.AddCommand(runCmd)
runCmd.Flags().BoolVar(&runCmdOpts.NoTeardownCanary, "without-teardown-canary", false, "disables the teardown canary")
}