usage

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 7 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 usage prints the guide in the binary, a page a topic, for one who has dockhand and no checkout of it (the person's "usage", 2026-10-28).

Index

Constants

This section is empty.

Variables

View Source
var Topics = []Topic{
	{"", "setup.md", "first setup and a release update through to its pull request"},
	{"branches", "branches.md", "find, start, adopt, rebase, restore, and retire work"},
	{"hand-edits", "hand-edits.md", "edit Portfiles, refresh checksums, and request rebuilds"},
	{"checks", "checks.md", "choose files, targets, tests, and build environments"},
	{"publishing", "publishing.md", "shape commits, assess evidence, and submit or update a PR"},
	{"recovery", "recovery.md", "diagnose holds, failed checks, interruptions, and stale evidence"},
	{"batches", "batches.md", "select many ports and manage partially completed work"},
	{"unattended", "unattended.md", "bump, background checks, serve, and unattended holds"},
	{"new-port", "new-port.md", "create and finish a Portfile for a new project"},
	{"review", "review.md", "inspect, adopt, check, and review another pull request"},
	{"agents", "agents.md", "explicit context, JSON, exit codes, scratch state, and automation"},
	{"configuration", "configuration.md", "profiles, holds, service settings, paths, and retention"},
}

Topics are the guide's pages, the first printed with no topic, in the order docs/usage.md lists them.

Functions

func Command

func Command(streams term.Streams) *cobra.Command

Command is dockhand usage [topic].

func Page

func Page(name string) (string, error)

Page is a topic's page, or the first with none.

Types

type Topic

type Topic struct {
	Name, Page, About string
}

A Topic is a page of the guide, by the word that names it.

Jump to

Keyboard shortcuts

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