terminalinstall

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package terminalinstall owns the external package-manager capability used to make the GitContribute CLI and TUI persistently available.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GlobalNPM

func GlobalNPM(ctx context.Context, packageSpec string) (string, error)

GlobalNPM installs packageSpec into npm's global prefix and returns the verified command path. The caller must obtain explicit user authorization before calling it: this function executes npm and may access the registry and mutate files outside GitContribute's application directories.

A successful npm exit is not sufficient. GlobalNPM resolves npm's actual prefix and verifies the platform-specific command shim so MCP registration never records an assumed or missing path. It does not modify shell startup files or the parent process's PATH.

Types

This section is empty.

Jump to

Keyboard shortcuts

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