All checks were successful
Release Tag / release (push) Successful in 9s
- Changed module name from `s1d3sw1ped/SteamCache2` to `s1d3sw1ped/steamcache2` for consistency. - Updated all import paths and references throughout the codebase to reflect the new module name. - Adjusted README and Makefile to use the updated module name, ensuring clarity in usage instructions.
25 lines
548 B
Go
25 lines
548 B
Go
// cmd/version.go
|
|
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"s1d3sw1ped/steamcache2/version"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// versionCmd represents the version command
|
|
var versionCmd = &cobra.Command{
|
|
Use: "version",
|
|
Short: "prints the version of steamcache2",
|
|
Long: `Prints the version of steamcache2. This command is useful for checking the version of the application.`,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
fmt.Fprintln(os.Stderr, "steamcache2", version.Version, version.Date)
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(versionCmd)
|
|
}
|