Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: vkhoroz <[email protected]>
  • Loading branch information
kprosise and vkhoroz authored Oct 23, 2024
1 parent 1e6371a commit cf83199
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion subcommands/targets/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func init() {
Short: "Compose and add Targets to Factory's TUF Targets metadata",
Run: doAdd,
Long: `
Compose new Targets out of the latest ones with the specified source tag via the command argumentseither OSTree commit hashes or App URIs.
Compose new Targets out of the latest ones with the specified source tag via the command argumentseither OSTree commit hashes or App URIs.
fioctl targets add --type <ostree | app> --tags <comma,separate,list of Target tags> --src-tag <source Target tag> [--targets-creator <something about Targets originator>]\
<hardware ID> <ostree commit hash> [<hardware ID> <ostree commit hash>] (for ostree type)
Expand Down
2 changes: 1 addition & 1 deletion subcommands/targets/tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func init() {
fioctl targets tag --tags main,promoted --by-version 42
# Tag a specific Target by name
fioctl targets tag --tags main,testing intel-corei7-64-lmp-42`,
fioctl targets tag --tags master,testing intel-corei7-64-lmp-42`,
Run: doTag,
Args: cobra.MinimumNArgs(1),
}
Expand Down
2 changes: 1 addition & 1 deletion subcommands/version/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func doVersion(cmd *cobra.Command, args []string) {
}
if err := update.Do(); err != nil {
if os.IsPermission(err) {
DieNotNil(fmt.Errorf("there was a permission error while updating Fioctl: %w. Please run again as an admin or root.", err))
DieNotNil(fmt.Errorf("There was a permission error while updating Fioctl: %w. Please run again as an admin or root.", err))
} else {
DieNotNil(err)
}
Expand Down
2 changes: 1 addition & 1 deletion subcommands/version/update_self_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func replaceSelf(curExe, newExe string) error {
return err
}
if err := os.Rename(newExe, curExe); err != nil {
msg := "unable to update to the new Fioctl binary. "
msg := "Unable to update to the new Fioctl binary. "
msg += "The old version is located at %s. "
msg += "The new version is located at %s. %w"
return fmt.Errorf(msg, oldExe, newExe, err)
Expand Down
2 changes: 1 addition & 1 deletion subcommands/waves/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var api *client.Api
var cmd = &cobra.Command{
Use: "waves",
Aliases: []string{"wave"},
Short: "Manage a Factory's Waves",
Short: "Manage Factory Waves",
PersistentPreRun: func(cmd *cobra.Command, args []string) {
api = subcommands.Login(cmd)
},
Expand Down
4 changes: 2 additions & 2 deletions subcommands/waves/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ that belong to a given group and also have a tag equal to a group tag.
This number can be lower than the total number of online devices in this group.
In a device group overview, all Wave rollout groups are shown first in the order of rollout time.
Next is other groups that have devices with a matching tagif they contain at least one such device.
The last row is for devices not belonging to any groupif at least one such device matches a Wave tag.
Next is other groups that have devices with a matching tagif they contain at least one such device.
The last row is for devices not belonging to any groupif at least one such device matches a Wave tag.
A number of updated devices depends onto a Wave status:
For active Waves, it is a number of devices in rollout groups with Target version >= Wave version.
Expand Down

0 comments on commit cf83199

Please sign in to comment.