Skip to content

Commit

Permalink
feat: Add version command
Browse files Browse the repository at this point in the history
  • Loading branch information
caffeine-addictt committed Apr 4, 2024
1 parent e46c5f1 commit 88d81a4
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package src

import (
"fmt"

"github.com/spf13/cobra"
)

var versionCommand = &cobra.Command{
Use: "version",
Short: "Print the version number of video-manager",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("v0.0.0")
},
}

func init() {
rootCommand.AddCommand(versionCommand)
}

0 comments on commit 88d81a4

Please sign in to comment.