mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-18 12:24:32 -05:00
33 lines
644 B
Go
33 lines
644 B
Go
|
/*
|
||
|
Copyright (c) Edgeless Systems GmbH
|
||
|
|
||
|
SPDX-License-Identifier: AGPL-3.0-only
|
||
|
*/
|
||
|
|
||
|
package cmd
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
|
||
|
"github.com/spf13/cobra"
|
||
|
)
|
||
|
|
||
|
// NewMeasurementsCmd creates a new measurements command. Measurements needs another
|
||
|
// verb, and does nothing on its own.
|
||
|
func NewMeasurementsCmd() *cobra.Command {
|
||
|
cmd := &cobra.Command{
|
||
|
Use: "measurements",
|
||
|
Short: "Handle OS image measurements",
|
||
|
Long: "Handle OS image measurements.",
|
||
|
Args: cobra.ExactArgs(0),
|
||
|
}
|
||
|
|
||
|
cmd.SetOut(os.Stdout)
|
||
|
|
||
|
cmd.AddCommand(newMeasurementsUploadCmd())
|
||
|
cmd.AddCommand(newMeasurementsMergeCmd())
|
||
|
cmd.AddCommand(newMeasurementsEnvelopeCmd())
|
||
|
|
||
|
return cmd
|
||
|
}
|