bootstrap

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package bootstrap resolves the external go and chezmoi binaries cheche depends on: a version already on PATH, else a previously self-installed copy under Dir(), else a freshly downloaded pinned version installed into Dir(). This is what lets cheche work out of the box (e.g. via install.sh) on a machine with neither tool present, with no separate explicit setup step.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chezmoi

func Chezmoi() (string, error)

Chezmoi resolves a usable chezmoi binary: a version on PATH, else a previously self-installed copy under Dir(), else a freshly downloaded and installed copy of the pinned chezmoiVersion. Returns the absolute path to the resolved binary.

func Dir

func Dir() (string, error)

Dir returns cheche's own managed directory, where self-installed go/chezmoi binaries and download staging live. It does not create the directory - callers that write into it create the subdirectories they need.

func Go

func Go() (string, error)

Go resolves a usable go binary: a version on PATH, else a previously self-installed copy under Dir(), else a freshly downloaded and installed copy of the pinned goVersion. Returns the absolute path to the resolved binary.

Types

This section is empty.

Jump to

Keyboard shortcuts

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