func RemoveEnvValAndSaveToLocal(argv core.ArgVals, cc *core.Cli, env *core.Env, _ core.ParsedCmd) bool {
	key := argv.GetRaw("key")
	if len(key) == 0 {
		panic(fmt.Errorf("[RemoveEnvValAndSaveToLocal] arg 'key' is empty"))
	}
	env.DeleteEx(key, core.EnvLayerDefault)

	kvSep := env.GetRaw("strs.env-kv-sep")
	path := getEnvLocalFilePath(env)
	core.SaveEnvToFile(env.GetLayer(core.EnvLayerSession), path, kvSep)
	display.PrintTipTitle(cc.Screen, env, "key '"+key+"' removed, changes of env are saved")
	return true
}
// TODO: support abbrs for arg 'key'
support abbrs for arg 'key'
// TODO : support abbrs for arg ' key '
func RemoveEnvValAndSaveToLocal(argv core.ArgVals, cc *core.Cli, env *core.Env, _ core.ParsedCmd) bool {
	key := argv.GetRaw("key")
	if len(key) == 0 {
		panic(fmt.Errorf("[RemoveEnvValAndSaveToLocal] arg 'key' is empty"))
	}
	env.DeleteEx(key, core.EnvLayerDefault)
	kvSep := env.GetRaw("strs.env-kv-sep")
	path := getEnvLocalFilePath(env)
	core.SaveEnvToFile(env.GetLayer(core.EnvLayerSession), path, kvSep)
	display.PrintTipTitle(cc.Screen, env, "key '"+key+"' removed, changes of env are saved")
	return true
}
func RemoveEnvValAndSaveToLocal ( argv core . ArgVals , cc * core . Cli , env * core . Env , _ core . ParsedCmd ) bool { key := argv . GetRaw ( " " ) if len ( key ) == 0 { panic ( fmt . Errorf ( " " ) ) } env . DeleteEx ( key , core . EnvLayerDefault ) kvSep := env . GetRaw ( " " ) path := getEnvLocalFilePath ( env ) core . SaveEnvToFile ( env . GetLayer ( core . EnvLayerSession ) , path , kvSep ) display . PrintTipTitle ( cc . Screen , env , " " + key + " " ) return true }
support abbrs for arg 'key'
support abbrs for arg ' key '