genoptions

command
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Generates options.go, which implements git options.

To modify options.go, modify the Options declared in this file and run `go generate`.

Each command that can take options (e.g. "clone") has a generated interface, so only options valid for that command can be passed.

Each option (e.g. "depth") has a generated function that returns the option, which can be passed to a command: `git.Clone(..., git.Depth(10))`

Jump to

Keyboard shortcuts

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