mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-04-28 11:55:51 +00:00
22 lines
355 B
Go
22 lines
355 B
Go
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/kubeshark/kubeshark/config"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var licenseCmd = &cobra.Command{
|
|
Use: "license",
|
|
Short: "Print the license loaded string",
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
fmt.Println(config.Config.License)
|
|
return nil
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(licenseCmd)
|
|
}
|