cli/pkg/cmd/attestation/root.go
Meredith Lancaster 4337447b8e add attestation cmd
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-02-13 13:30:31 -07:00

28 lines
614 B
Go

package attestation
import (
"github.com/github/gh-attestation/cmd/app"
"github.com/cli/cli/v2/pkg/cmdutil"
"github.com/spf13/cobra"
)
func NewCmdAttestation(f *cmdutil.Factory) *cobra.Command {
root := &cobra.Command{
Use: "attestation",
Short: "attestations",
// Aliases: []string{"cs"},
// GroupID: "core",
}
version := "test"
date := "test"
shortSHA := "test"
root.AddCommand(app.NewDownloadCmd(version, date))
root.AddCommand(app.NewVerifyCmd(version, date))
root.AddCommand(app.NewVersionCmd(version, date, shortSHA))
root.AddCommand(app.NewTUFRootVerifyCmd())
return root
}