creconfig

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Dir = ".cre"

Variables

This section is empty.

Functions

func DirPath

func DirPath() (string, error)

DirPath returns the absolute path to the CLI config directory.

func EnsureDir

func EnsureDir() (string, error)

EnsureDir creates the CLI config directory with 0700 permissions if missing.

func FilePath

func FilePath(name string) (string, error)

FilePath returns the absolute path to a file directly under the CLI config directory.

func FilePathHint

func FilePathHint(name string) string

FilePathHint returns the absolute config file path for user-facing messages, or a doc-style path (Dir/name) if the home directory cannot be resolved.

func JoinPath

func JoinPath(elem ...string) (string, error)

JoinPath returns an absolute path under the CLI config directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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