cmdutil

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package cmdutil provides shared helpers for repository command utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatalf

func Fatalf(message string, args ...any)

Fatalf writes a formatted error message to stderr and exits with status 1.

func Progressf added in v2.4.0

func Progressf(message string, args ...any)

Progressf writes a formatted progress line to stderr so long-running command utilities show activity instead of looking stale. It writes to stderr (never stdout) so it never pollutes JSON or generated output captured from stdout. A trailing newline is added automatically.

func RepositoryRoot

func RepositoryRoot(start string) (string, error)

RepositoryRoot walks upward from start until it finds the module root.

Types

This section is empty.

Jump to

Keyboard shortcuts

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