func GetMountHostsFilePath(id string) string {
	if runtime.GOOS == "windows" {
		if id == "default" {
			return fmt.Sprintf("%s/.space-cloud/hosts", getWindowsUserDirectory())
		}
		return fmt.Sprintf("%s/.space-cloud/%s/hosts", getWindowsUserDirectory(), id)
	}
	return GetSpaceCloudHostsFilePath(id)
}
GetMountHostsFilePath returns the path of the hosts files to be mounted in in space cloud
package utils
import (
	"fmt"
	"os"
	"runtime"
	"strings"
)
func GetSpaceCloudDirectory() string {
	return fmt.Sprintf("%s/.space-cloud", getHomeDirectory())
}
func GetSpaceCloudClusterDirectory(clusterID string) string {
	return fmt.Sprintf("%s/.space-cloud/%s", getHomeDirectory(), clusterID)
}
func GetSpaceCloudHostsFilePath(id string) string {
	if id == "default" {
		return fmt.Sprintf("%s/hosts", GetSpaceCloudDirectory())
	}
	return fmt.Sprintf("%s/%s/hosts", GetSpaceCloudDirectory(), id)
}
func GetSpaceCloudRoutingConfigPath(id string) string {
	if id == "default" {
		return fmt.Sprintf("%s/routing-config.json", GetSpaceCloudDirectory())
	}
	return fmt.Sprintf("%s/%s/routing-config.json", GetSpaceCloudDirectory(), id)
}
func GetSpaceCloudConfigFilePath(id string) string {
	if id == "default" {
		return fmt.Sprintf("%s/config.yaml", GetSpaceCloudDirectory())
	}
	return fmt.Sprintf("%s/%s/config.yaml", GetSpaceCloudDirectory(), id)
}
func GetSecretsDir(id string) string {
	if id == "default" {
		return fmt.Sprintf("%s/secrets", GetSpaceCloudDirectory())
	}
	return fmt.Sprintf("%s/%s/secrets", GetSpaceCloudDirectory(), id)
}
func GetTempSecretsDir(id string) string {
	if id == "default" {
		return fmt.Sprintf("%s/secrets/temp-secrets", GetSpaceCloudDirectory())
	}
	return fmt.Sprintf("%s/%s/secrets/temp-secrets", GetSpaceCloudDirectory(), id)
}
func getHomeDirectory() string {
	if runtime.GOOS == "windows" {
		home := os.Getenv("HOMEDRIVE") + os.Getenv("HOMEPATH")
		if home == "" {
			home = os.Getenv("USERPROFILE")
		}
		return home
	}
	return os.Getenv("HOME")
}
func getAccountConfigPath() string {
	return fmt.Sprintf("%s/accounts.yaml", GetSpaceCloudDirectory())
}