From 261df8261f9d270871191721a0d9d6a42a08fa8a Mon Sep 17 00:00:00 2001 From: "M. Mert Yildiran" Date: Sun, 26 Mar 2023 21:40:49 +0300 Subject: [PATCH] :bug: Use `tap` config for `console`, `pro`, `proxy` and `scripts` commands --- config/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/config.go b/config/config.go index 63e126607..b078de11d 100644 --- a/config/config.go +++ b/config/config.go @@ -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