Help us shape the future of Go! Take the 2026 Go Developer Survey

cli

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Overview

Package cli wires the gitdr subcommands (backup, restore, verify, doctor) over the stdlib flag package. Logs go to stderr; machine-readable output goes to stdout.

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is set at build time via -ldflags "-X gitdr.io/gitdr/internal/cli.Version=...".

Functions

func Run

func Run(ctx context.Context, args []string) int

Run dispatches a subcommand and returns a process exit code (non-zero on any error).

Types

This section is empty.

Jump to

Keyboard shortcuts

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