show current config folder for config command

This commit is contained in:
xiaoyaofenfen 2022-12-21 15:41:00 +08:00
parent bb8dad7262
commit aabab869c4

View File

@ -162,7 +162,7 @@ func CmdConfig() cli.Command {
Before: ReloadConfigFunc,
After: SaveConfigFunc,
Action: func(c *cli.Context) error {
fmt.Printf("----\n运行 %s config set 可进行设置配置\n\n当前配置:\n", cmder.App().Name)
fmt.Printf("----\n当前配置目录: %s\n运行 %s config set 可进行设置配置\n\n当前配置:\n", config.GetConfigDir(), cmder.App().Name)
config.Config.PrintTable()
return nil
},