homepath

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package homepath resolves the user data root using explicit configuration, then OMNIX_HOME, then ~/.omnix. It supports tilde expansion and symbolic display, matching util/home-paths upstream.

Index

Constants

View Source
const EnvName = "OMNIX_HOME"

EnvName is the environment variable overriding the default home.

View Source
const HomeDirName = ".omnix"

HomeDirName is the default Harness home directory name.

Variables

This section is empty.

Functions

func Display

func Display(resolvedHome string) string

Display renders the default home as ~/.omnix and custom homes as $OMNIX_HOME.

func ExpandHome

func ExpandHome(path string) (string, error)

ExpandHome expands leading ~, ~/, or ~\ to the OS home; other prefixes are unchanged.

func Resolve

func Resolve(configured string, env map[string]string) (string, error)

Resolve prefers nonempty configured, then nonblank OMNIX_HOME in env, then the default ~/.omnix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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