From 9c98cd1c5949ae3080467502fe40535babe57ec0 Mon Sep 17 00:00:00 2001 From: Slug-Boi Date: Tue, 14 Jan 2025 14:40:44 +0100 Subject: [PATCH] refactor: call update check on users cmd --- src/cmd/users.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cmd/users.go b/src/cmd/users.go index fda9fd7..591558e 100644 --- a/src/cmd/users.go +++ b/src/cmd/users.go @@ -22,6 +22,10 @@ func UsersCmd() *cobra.Command { Short: "Displays all users from the author file located at:\n" + authorfile, Long: `Displays all users from the author file located at:` + "\n" + authorfile, Run: func(cmd *cobra.Command, args []string) { + if update { + update_msg() + } + //TODO: make this print a bit prettier (sort it and maybe use a table) // check if the no pretty print flag is set np, _ := cmd.Flags().GetBool("np")