Skip to content

Commit

Permalink
Fix flag descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlesfrog committed Jun 2, 2024
1 parent a4a7ad2 commit 0d57c7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
8 changes: 1 addition & 7 deletions evidence/cli/docs/create/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,5 @@ func GetDescription() string {
}

func GetArguments() []components.Argument {
return []components.Argument{
{Name: "predicate", Optional: false, Description: "Path to the predicate, arbitrary JSON."},
{Name: "predicate-type", Optional: false, Description: "Type of the predicate."},
{Name: "subject", Optional: false, Description: "Full path to some subjects' location, an artifact."},
{Name: "key", Optional: false, Description: "Path to a private key that will sign the DSSE. Supported keys: 'ecdsa','rsa' and 'ed25519'."},
{Name: "key-name", Optional: true, Description: "Keyid."},
}
return []components.Argument{}
}
8 changes: 4 additions & 4 deletions evidence/cli/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ var flagsMap = map[string]components.Flag{
password: components.NewStringFlag(password, "JFrog password.", func(f *components.StringFlag) { f.Mandatory = false }),
accessToken: components.NewStringFlag(accessToken, "JFrog access token.", func(f *components.StringFlag) { f.Mandatory = false }),

EvdPredicate: components.NewStringFlag(EvdPredicate, "Path for a file containing the predicate. The file should contain a valid JSON predicate.", func(f *components.StringFlag) { f.Mandatory = true }),
EvdPredicateType: components.NewStringFlag(EvdPredicateType, "The type of the predicate.", func(f *components.StringFlag) { f.Mandatory = true }),
EvdSubject: components.NewStringFlag(EvdSubject, "Path for a file containing the subject.", func(f *components.StringFlag) { f.Mandatory = true }),
EvdKey: components.NewStringFlag(EvdKey, "Private key.", func(f *components.StringFlag) { f.Mandatory = true }),
EvdPredicate: components.NewStringFlag(EvdPredicate, "Path to the predicate, arbitrary JSON.", func(f *components.StringFlag) { f.Mandatory = true }),
EvdPredicateType: components.NewStringFlag(EvdPredicateType, "Type of the predicate.", func(f *components.StringFlag) { f.Mandatory = true }),
EvdSubject: components.NewStringFlag(EvdSubject, "Full path to some subjects' location, an artifact.", func(f *components.StringFlag) { f.Mandatory = true }),
EvdKey: components.NewStringFlag(EvdKey, "Path to a private key that will sign the DSSE. Supported keys: 'ecdsa','rsa' and 'ed25519'.", func(f *components.StringFlag) { f.Mandatory = true }),
EvdKeyId: components.NewStringFlag(EvdKeyId, "KeyId", func(f *components.StringFlag) { f.Mandatory = false }),
}

Expand Down

0 comments on commit 0d57c7f

Please sign in to comment.