🔨 Rename kubeshark package to misc

This commit is contained in:
M. Mert Yildiran
2022-12-29 03:45:24 +03:00
parent 6d06c53ebf
commit 9ab9f139c0
11 changed files with 23 additions and 23 deletions

View File

@@ -6,7 +6,7 @@ import (
"time"
"github.com/kubeshark/kubeshark/config"
"github.com/kubeshark/kubeshark/kubeshark"
"github.com/kubeshark/kubeshark/misc"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
)
@@ -15,16 +15,16 @@ var versionCmd = &cobra.Command{
Use: "version",
Short: "Print version info",
RunE: func(cmd *cobra.Command, args []string) error {
timeStampInt, _ := strconv.ParseInt(kubeshark.BuildTimestamp, 10, 0)
timeStampInt, _ := strconv.ParseInt(misc.BuildTimestamp, 10, 0)
if config.DebugMode {
log.Info().
Str("version", kubeshark.Ver).
Str("branch", kubeshark.Branch).
Str("commit-hash", kubeshark.GitCommitHash).
Str("version", misc.Ver).
Str("branch", misc.Branch).
Str("commit-hash", misc.GitCommitHash).
Time("build-time", time.Unix(timeStampInt, 0)).
Send()
} else {
fmt.Println(kubeshark.Ver)
fmt.Println(misc.Ver)
}
return nil
},