state

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package state handles repository state

Index

Constants

This section is empty.

Variables

View Source
var DefaultBranches = []string{"main", "master"}

DefaultBranches are the default branches to consider as 'default' (not specifically checked out)

Functions

func Current

func Current(settings Settings) error

Current will write state for the inputs

Types

type Settings

type Settings struct {
	Quick    bool
	Branches []string
	Writer   io.Writer
	Dir      string
}

Settings are the state settings to operate on

Jump to

Keyboard shortcuts

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