Skip to content

Commit ea8ff0c

Browse files
committed
Refactor the informative messages for set/get threshold commands
Signed-off-by: Radoslav Dimitrov <dimitrovr@vmware.com>
1 parent 99a3e94 commit ea8ff0c

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ should be distributed to clients for performing initial updates.
115115

116116
#### `tuf set-threshold <role> <threshold>`
117117

118-
Sets the `role` threshold (required number of keys for signing) to
118+
Sets `role`'s threshold (required number of keys for signing) to
119119
`threshold`.
120120

121121
#### `tuf get-threshold <role>`
122122

123-
Outputs the `role` threshold (required number of keys for signing).
123+
Outputs `role`'s threshold (required number of keys for signing).
124124

125125
#### Usage of environment variables
126126

cmd/tuf/set_threshold.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ func cmdSetThreshold(args *docopt.Args, repo *tuf.Repo) error {
2828
return err
2929
}
3030

31-
fmt.Println("The treshold for", role, "role is", threshold)
31+
fmt.Println("The threshold for", role, "role is now", threshold)
3232
return nil
3333
}

repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ func (r *Repo) RevokeKeyWithExpires(keyRole, id string, expires time.Time) error
478478

479479
err = r.setMeta("root.json", root)
480480
if err == nil {
481-
fmt.Println("Revoked", keyRole, "key with ID", id)
481+
fmt.Println("Revoked", keyRole, "key with ID", id, "in root metadata")
482482
}
483483
return err
484484
}

0 commit comments

Comments
 (0)