Skip to content

Commit

Permalink
feat: add --check flag to the update command
Browse files Browse the repository at this point in the history
Signed-off-by: hanshal101 <[email protected]>
  • Loading branch information
hanshal101 authored and hanshal101 committed Jul 3, 2024
1 parent e8824a6 commit f9d61df
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,9 @@ var UpdateCmd = &cobra.Command{
if !update.ComparePackages(hconf.Packages.Development, devVersions) || !update.ComparePackages(hconf.Packages.Runtime, runtimeVersions) {
fmt.Println(styles.WarnStyle.Render("Updates are available"))
os.Exit(1)
} else {
fmt.Println(styles.SucessStyle.Render("No updates available"))
os.Exit(0)
}
fmt.Println(styles.SucessStyle.Render("No updates available"))
os.Exit(0)
}

fh, err := hcl2nix.NewFileHandlers(true)
Expand Down

0 comments on commit f9d61df

Please sign in to comment.