mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-08-18 15:21:45 +00:00
.github
app
cmd
client.go
client_test.go
client_test.yaml
errors.go
ping.go
root.go
server.go
server_test.go
server_test.yaml
update.go
version.go
internal
misc
go.mod
go.sum
main.go
pprof.go
core
extras
media-kit
scripts
.gitignore
CHANGELOG.md
Dockerfile
LICENSE.md
PROTOCOL.md
README.md
go.work
go.work.sum
hyperbole.py
logo.svg
platforms.txt
24 lines
359 B
Go
24 lines
359 B
Go
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// versionCmd represents the version command
|
|
var versionCmd = &cobra.Command{
|
|
Use: "version",
|
|
Short: "Show version",
|
|
Long: "Show version.",
|
|
Run: runVersion,
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(versionCmd)
|
|
}
|
|
|
|
func runVersion(cmd *cobra.Command, args []string) {
|
|
fmt.Println(appAboutLong)
|
|
}
|