Documentation
¶
Index ¶
- Constants
- func ApplyLauncherProcAttrs(_ *exec.Cmd)
- func EnsureOnboarded(configPath string) error
- func FindFacetStudioBinary() string
- func GetDefaultConfigPath() string
- func GetFacetStudioHome() string
- func GetGlobalIPv6s() []string
- func GetLocalIP() string
- func GetLocalIPv4() string
- func GetLocalIPv4s() []string
- func GetLocalIPv6() string
- func LauncherExecCommand(name string, args ...string) *exec.Cmd
- func OpenBrowser(url string) error
Constants ¶
const (
Banner = "\r\n" +
colorBlue + "███████╗ █████╗ ██████╗███████╗████████╗" + colorRed + " ███████╗████████╗██╗ ██╗██████╗ ██╗ ██████╗ \n" +
colorBlue + "██╔════╝██╔══██╗██╔════╝██╔════╝╚══██╔══╝" + colorRed + " ██╔════╝╚══██╔══╝██║ ██║██╔══██╗██║██╔═══██╗\n" +
colorBlue + "█████╗ ███████║██║ █████╗ ██║ " + colorRed + " ███████╗ ██║ ██║ ██║██║ ██║██║██║ ██║\n" +
colorBlue + "██╔══╝ ██╔══██║██║ ██╔══╝ ██║ " + colorRed + " ╚════██║ ██║ ██║ ██║██║ ██║██║██║ ██║\n" +
colorBlue + "██║ ██║ ██║╚██████╗███████╗ ██║ " + colorRed + " ███████║ ██║ ╚██████╔╝██████╔╝██║╚██████╔╝\n" +
colorBlue + "╚═╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ ╚═╝ " + colorRed + " ╚══════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═════╝ \n" +
colorReset
)
Variables ¶
This section is empty.
Functions ¶
func ApplyLauncherProcAttrs ¶
ApplyLauncherProcAttrs is a no-op on non-Windows platforms.
func EnsureOnboarded ¶
func FindFacetStudioBinary ¶
func FindFacetStudioBinary() string
FindFacetStudioBinary locates the facet-studio executable. Search order:
- FACET_STUDIO_BINARY environment variable (explicit override)
- Same directory as the current executable
- Falls back to "facet-studio" and relies on $PATH
func GetDefaultConfigPath ¶
func GetDefaultConfigPath() string
GetDefaultConfigPath returns the default path to the facet-studio config file.
func GetFacetStudioHome ¶
func GetFacetStudioHome() string
GetFacetStudioHome returns the facet-studio home directory. Priority: $FACET_STUDIO_HOME > ~/.facet-studio
func GetGlobalIPv6s ¶
func GetGlobalIPv6s() []string
GetGlobalIPv6s returns all IPv6 global unicast addresses.
func GetLocalIP ¶
func GetLocalIP() string
GetLocalIP returns a non-loopback local IPv4 address for backward compatibility.
func GetLocalIPv4 ¶
func GetLocalIPv4() string
GetLocalIPv4 returns the first non-loopback local IPv4 address.
func GetLocalIPv4s ¶
func GetLocalIPv4s() []string
GetLocalIPv4s returns all non-loopback local IPv4 addresses.
func GetLocalIPv6 ¶
func GetLocalIPv6() string
GetLocalIPv6 returns the first IPv6 global unicast address.
func LauncherExecCommand ¶
LauncherExecCommand creates an exec.Cmd. On non-Windows platforms, this is a simple wrapper around exec.Command.
func OpenBrowser ¶
OpenBrowser automatically opens the given URL in the default browser.
Types ¶
This section is empty.