Skip to content

Commit 9c98cd1

Browse files
committed
refactor: call update check on users cmd
1 parent 1ea3d94 commit 9c98cd1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cmd/users.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ func UsersCmd() *cobra.Command {
2222
Short: "Displays all users from the author file located at:\n" + authorfile,
2323
Long: `Displays all users from the author file located at:` + "\n" + authorfile,
2424
Run: func(cmd *cobra.Command, args []string) {
25+
if update {
26+
update_msg()
27+
}
28+
2529
//TODO: make this print a bit prettier (sort it and maybe use a table)
2630
// check if the no pretty print flag is set
2731
np, _ := cmd.Flags().GetBool("np")

0 commit comments

Comments
 (0)