Skip to content

Commit

Permalink
Update version and add flag -V, center support image
Browse files Browse the repository at this point in the history
  • Loading branch information
r4ulcl committed Jan 25, 2024
1 parent b5ece48 commit 02f0d4d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,11 @@ The diagram above illustrates the architecture of the nTask Manager and its inte

### Buymeacoffee

[<img src="https://cdn.buymeacoffee.com/buttons/v2/default-green.png">](https://www.buymeacoffee.com/r4ulcl)
<p align="center">
<a href="https://www.buymeacoffee.com/r4ulcl">
<img src="https://cdn.buymeacoffee.com/buttons/v2/default-green.png" />
</a>
</p>

## License

Expand Down
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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",
Expand All @@ -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")

Expand Down

0 comments on commit 02f0d4d

Please sign in to comment.