util

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableDebug

func EnableDebug()

func PrintPlan

func PrintPlan(p Plan)

func PrintSummary added in v0.1.15

func PrintSummary(p Plan)

PrintSummary prints a human-readable summary of the plan

func Warnf added in v0.1.15

func Warnf(format string, v ...any)

Warnf prints a warning message to stderr

Types

type Change

type Change struct {
	Scope   string      `json:"scope"`
	Target  string      `json:"target"`
	Action  string      `json:"action"`
	Details interface{} `json:"details"`
}

type Plan

type Plan struct {
	Changes  []Change    `json:"changes"`
	Warnings []string    `json:"warnings"`
	Stats    *StateStats `json:"stats,omitempty"`
}

type StatePair added in v0.1.15

type StatePair struct {
	Current int `json:"current"`
	Desired int `json:"desired"`
}

type StateStats added in v0.1.15

type StateStats struct {
	Teams           StatePair `json:"teams"`
	TeamMembers     StatePair `json:"team_members"`
	Repositories    StatePair `json:"repositories"`
	RepoPermissions StatePair `json:"repo_permissions"`
}

Jump to

Keyboard shortcuts

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