installer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package installer installs cheat packs from the registry onto the local machine. It prefers the user's git binary (shallow clone) and falls back to downloading the repository tarball over HTTPS when git is unavailable.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(ctx context.Context, pack registry.Pack, destDir string) error

Install places pack's markdown cheats under destDir/<pack.Name>.

It first tries `git clone --depth 1`; if git is not on PATH (or the clone fails), it falls back to downloading the GitHub tarball. Only .md files are kept, optionally restricted to pack.Subdir.

Types

This section is empty.

Jump to

Keyboard shortcuts

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