utils

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
		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 EnsureOnboarded(configPath string) error

func FindPicoclawBinary

func FindPicoclawBinary() string

FindPicoclawBinary locates the picoclaw executable. Search order:

  1. PICOCLAW_BINARY environment variable (explicit override)
  2. Same directory as the current executable
  3. Falls back to "picoclaw" and relies on $PATH

func GetDefaultConfigPath

func GetDefaultConfigPath() string

GetDefaultConfigPath returns the default path to the picoclaw config file.

func GetLocalIP

func GetLocalIP() string

GetLocalIP returns the local IP address of the machine.

func OpenBrowser

func OpenBrowser(url string) error

OpenBrowser automatically opens the given URL in the default browser.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL