mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-05-03 14:18:28 +00:00
* Remove `logger` module * Remove `shared` module * Move `cli` folder contents into project root * Fix linter * Change the module name from `github.com/kubeshark/kubeshark/cli` to `github.com/kubeshark/kubeshark` * Set the default `Makefile` rule to `build` * Add `lint` rule * Fix the linter errors
19 lines
287 B
Go
19 lines
287 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var cleanCmd = &cobra.Command{
|
|
Use: "clean",
|
|
Short: "Removes all kubeshark resources",
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
performCleanCommand()
|
|
return nil
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(cleanCmd)
|
|
}
|