mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-31 16:25:22 +00:00
🐛 Use tap
config for console
, pro
, proxy
and scripts
commands
This commit is contained in:
parent
e14bc8064b
commit
261df8261f
@ -58,6 +58,9 @@ func InitConfig(cmd *cobra.Command) error {
|
||||
|
||||
Config = CreateDefaultConfig()
|
||||
cmdName = cmd.Name()
|
||||
if utils.Contains([]string{"console", "pro", "proxy", "scripts"}, cmdName) {
|
||||
cmdName = "tap"
|
||||
}
|
||||
|
||||
if err := defaults.Set(&Config); err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user