app-misc/cheat - 5.1.0 (nest)

Search

Install

Install this version:

emerge -a =app-misc/cheat-5.1.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-misc/cheat-5.1.0

Or alternatively:

emerge --autounmask-write -a =app-misc/cheat-5.1.0

Package Information

Description:
Interactive cheatsheets on the command-line
Homepage:
https://github.com/cheat/cheat
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
5.1.0 9 ~amd64 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=9

inherit go-module shell-completion

DESCRIPTION="Interactive cheatsheets on the command-line"
HOMEPAGE="https://github.com/cheat/cheat"
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

BDEPEND=">=dev-lang/go-1.26"

src_compile() {
	GOFLAGS="-v -x -mod=vendor" ego build ./cmd/...

	local completion
	for completion in bash zsh fish ; do
		edo ./cheat --completion "${completion}" > cheat."${completion}"
	done
}

src_test() {
	GOFLAGS="-v -x -mod=vendor" ego test ./...
}

src_install() {
	einstalldocs
	dobin cheat
	doman doc/cheat.1

	newbashcomp cheat.bash cheat
	newfishcomp cheat.fish cheat
	newzshcomp cheat.zsh _cheat
}

Inherited Eclasses

Dependencies

BDEPEND

>=dev-lang/go-1.26

Manifest for 5.1.0

Type File Size Source URLs
DIST cheat-5.1.0.tar.gz 3442396 bytes https://github.com/cheat/cheat/archive/5.1.0.tar.gz