mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 12:45:47 +00:00
refactor: call update check on users cmd
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user