rename command
Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
parent
65071223d8
commit
56261d7bcb
2 changed files with 9 additions and 6 deletions
|
|
@ -4,8 +4,8 @@ import (
|
|||
"github.com/cli/cli/v2/pkg/cmd/attestation/artifact/oci"
|
||||
"github.com/cli/cli/v2/pkg/cmd/attestation/download"
|
||||
"github.com/cli/cli/v2/pkg/cmd/attestation/inspect"
|
||||
"github.com/cli/cli/v2/pkg/cmd/attestation/tufrootverify"
|
||||
"github.com/cli/cli/v2/pkg/cmd/attestation/verify"
|
||||
"github.com/cli/cli/v2/pkg/cmd/attestation/verifytufroot"
|
||||
"github.com/cli/cli/v2/pkg/cmdutil"
|
||||
|
||||
"github.com/MakeNowJust/heredoc"
|
||||
|
|
@ -34,7 +34,7 @@ func NewCmdAttestation(f *cmdutil.Factory) *cobra.Command {
|
|||
root.AddCommand(download.NewDownloadCmd(f, ociClient))
|
||||
root.AddCommand(inspect.NewInspectCmd(f, ociClient))
|
||||
root.AddCommand(verify.NewVerifyCmd(f, ociClient))
|
||||
root.AddCommand(verifytufroot.NewVerifyTUFRootCmd(f))
|
||||
root.AddCommand(tufrootverify.NewTUFRootVerifyCmd(f))
|
||||
|
||||
return root
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package verifytufroot
|
||||
package tufrootverify
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
@ -14,21 +14,24 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
func NewVerifyTUFRootCmd(f *cmdutil.Factory) *cobra.Command {
|
||||
func NewTUFRootVerifyCmd(f *cmdutil.Factory) *cobra.Command {
|
||||
var mirror string
|
||||
var root string
|
||||
var cmd = cobra.Command{
|
||||
Use: "verify-tuf-root --mirror <mirror-url> --root <root.json>",
|
||||
Use: "tuf-root-verify --mirror <mirror-url> --root <root.json>",
|
||||
Args: cobra.ExactArgs(0),
|
||||
Short: "Verify the TUF repository from a provided TUF root",
|
||||
Long: heredoc.Docf(`
|
||||
Verify a TUF repository from a local TUF root.
|
||||
Verify a TUF repository with a local TUF root.
|
||||
|
||||
The command requires you provide the %[1]s--mirror%[1]s flag, which should be the URL
|
||||
of the TUF repository mirror.
|
||||
|
||||
The command also requires you provide the %[1]s--root%[1]s flag, which should be the
|
||||
path to the TUF root file.
|
||||
|
||||
GitHub relies on TUF to securely deliver the trust root for our signing authority.
|
||||
For more information on TUF, see the official documentation: <https://theupdateframework.github.io/>.
|
||||
`, "`"),
|
||||
Example: heredoc.Doc(`
|
||||
# Verify the TUF repository from a provided TUF root
|
||||
Loading…
Add table
Add a link
Reference in a new issue