Skip to content

Commit

Permalink
feat: move to 0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Atticus64 committed Aug 9, 2023
1 parent d1e12f8 commit 963d146
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion cmd/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ import (
"github.com/spf13/cobra"
)

func GetVersion() string {
return "0.0.3"
}

func GetHome () (string, error) {
dirname, err := os.UserHomeDir()
if err != nil {
Expand Down Expand Up @@ -40,7 +44,7 @@ var rootCmd = &cobra.Command{
}

if ShowVersion {
fmt.Println("Dona version 0.0.1 beta ultra alpha radioactive")
fmt.Println("Dona version " + GetVersion())
return
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ var VersionCmd = &cobra.Command{
Short: "Print the version number of Dona",
Long: `All software has versions. This is Dona's`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("Dona version 0.0.2 beta")
fmt.Println("Dona version " + GetVersion())
},
}
2 changes: 2 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ else
;;
esac
fi

printf "Get started with dona init"

0 comments on commit 963d146

Please sign in to comment.