refactor: call update check on users cmd

This commit is contained in:
Slug-Boi
2025-01-14 14:40:44 +01:00
parent 1ea3d94421
commit 9c98cd1c59
+4
View File
@@ -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")