🐛 Use tap config for console, pro, proxy and scripts commands

This commit is contained in:
M. Mert Yildiran 2023-03-26 21:40:49 +03:00
parent e14bc8064b
commit 261df8261f
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461

View File

@ -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