Documentation
¶
Index ¶
- Constants
- func EnsureOnboarded(configPath string) error
- func FindPicoclawBinary() string
- func GetDefaultConfigPath() string
- func GetGlobalIPv6s() []string
- func GetLocalIP() string
- func GetLocalIPv4() string
- func GetLocalIPv4s() []string
- func GetLocalIPv6() string
- func GetPicoclawHome() string
- func OpenBrowser(url string) error
Constants ¶
View Source
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 EnsureOnboarded ¶
func FindPicoclawBinary ¶
func FindPicoclawBinary() string
FindPicoclawBinary locates the picoclaw executable. Search order:
- PICOCLAW_BINARY environment variable (explicit override)
- Same directory as the current executable
- Falls back to "picoclaw" and relies on $PATH
func GetDefaultConfigPath ¶
func GetDefaultConfigPath() string
GetDefaultConfigPath returns the default path to the picoclaw config file.
func GetGlobalIPv6s ¶ added in v0.2.7
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 ¶ added in v0.2.7
func GetLocalIPv4() string
GetLocalIPv4 returns the first non-loopback local IPv4 address.
func GetLocalIPv4s ¶ added in v0.2.7
func GetLocalIPv4s() []string
GetLocalIPv4s returns all non-loopback local IPv4 addresses.
func GetLocalIPv6 ¶ added in v0.2.7
func GetLocalIPv6() string
GetLocalIPv6 returns the first IPv6 global unicast address.
func GetPicoclawHome ¶ added in v0.2.4
func GetPicoclawHome() string
GetPicoclawHome returns the picoclaw home directory. Priority: $PICOCLAW_HOME > ~/.picoclaw
func OpenBrowser ¶
OpenBrowser automatically opens the given URL in the default browser.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.