Skip to content

Commit

Permalink
fix: auto update
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurbcp committed Dec 5, 2024
1 parent 1efa249 commit 4cff33c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
<!-- /UNRELEASED -->

<!-- NEXT RELEASE -->
## [v1.3.2] - 2024-12-04
- Fix auto update

## [v1.3.1] - 2024-12-04
- Fix version name

Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func init() {
rootCmd.CompletionOptions.HiddenDefaultCmd = true
rootCmd.PersistentFlags().BoolVarP(&verbose.Verbose, "verbose", "", false, "Enable verbose logs")
rootCmd.Flags().BoolVarP(&showVersion, "version", "v", false, "Print the version number of Mr. Smith")
rootCmd.PreRun = func(cmd *cobra.Command, args []string) {
rootCmd.PersistentPreRun = func(cmd *cobra.Command, args []string) {
shared.RunCommand("go", "install", "github.com/mr-smith-org/mr@latest")
}
rootCmd.AddCommand(create.CreateCmd)
Expand Down

0 comments on commit 4cff33c

Please sign in to comment.