From 02f0d4d5b717ac0eee5b59351848872794da2264 Mon Sep 17 00:00:00 2001 From: r4ulcl Date: Thu, 25 Jan 2024 22:42:35 +0000 Subject: [PATCH] Update version and add flag -V, center support image --- README.md | 6 +++++- main.go | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9259e63..5c8f863 100644 --- a/README.md +++ b/README.md @@ -456,7 +456,11 @@ The diagram above illustrates the architecture of the nTask Manager and its inte ### Buymeacoffee -[](https://www.buymeacoffee.com/r4ulcl) +

+ + + +

## License diff --git a/main.go b/main.go index 438c500..2566860 100644 --- a/main.go +++ b/main.go @@ -11,7 +11,7 @@ import ( ) // @title nTask API -// @version 1.0 +// @version v0.1 // @description nTask API documentation // @contact.name r4ulcl // @contact.url https://r4ulcl.com @@ -40,7 +40,7 @@ type Arguments struct { func main() { var arguments Arguments - version := "v0.1.0" + version := "v0.1" var rootCmd = &cobra.Command{ Use: "nTask", Short: "Your program description", @@ -53,6 +53,7 @@ func main() { // Add global flags to the root command rootCmd.PersistentFlags().BoolP("swagger", "s", false, "Start the swagger endpoint (/swagger)") rootCmd.PersistentFlags().BoolP("verbose", "v", false, "Set verbose mode") + rootCmd.Flags().BoolP("version", "V", false, "Version for nTask") rootCmd.PersistentFlags().BoolP("debug", "d", false, "Set debug mode") rootCmd.PersistentFlags().BoolP("verifyAltName", "a", false, "Set verifyAltName to true")