cliinstall

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cliinstall puts an `actp` command on the user's PATH that points at the running binary, for app installs where the binary lives inside a bundle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(exe, path string) (string, error)

Install links actp into the first writable folder on PATH. It returns the link, or an error with the command to run by hand.

Types

type Status

type Status struct {
	Path    string `json:"path,omitempty"` // the actp found on PATH
	Current bool   `json:"current"`        // it is this binary
	Hint    string `json:"hint,omitempty"` // what to do if it cannot be installed
}

Status says where the actp command is and whether it points at exe.

func Check

func Check(exe, path string) Status

Check looks for actp on a PATH (the login shell's, not the app's: apps started from Finder get a minimal one).

Jump to

Keyboard shortcuts

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