mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-02 18:44:49 -05:00
1ecc56b69f
This removes systemd service upload support in cdbg, but keeps it in the protobuf protocol.
29 lines
663 B
Go
29 lines
663 B
Go
package cmd
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/edgelesssys/constellation/internal/constants"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func newRootCmd() *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "cdbg",
|
|
Short: "Constellation debugging client",
|
|
Long: `cdbg is the constellation debugging client.
|
|
It connects to CoreOS instances running debugd and deploys a self-compiled version of the bootstrapper.`,
|
|
}
|
|
cmd.PersistentFlags().String("config", constants.ConfigFilename, "Constellation config file")
|
|
cmd.AddCommand(newDeployCmd())
|
|
return cmd
|
|
}
|
|
|
|
// Execute starts the CLI.
|
|
func Execute() {
|
|
cmd := newRootCmd()
|
|
if err := cmd.Execute(); err != nil {
|
|
os.Exit(1)
|
|
}
|
|
}
|