cmdumbrella

package
v0.216.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cmdumbrella implements the `wb umbrella` command tree (`show`, `close`).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(runtime shared.Runtime, deps Dependencies) *cobra.Command

New constructs the `wb umbrella` parent command and its `show` and `close` verbs.

Types

type CloseDocument

type CloseDocument struct {
	Ref          string            `json:"ref"`
	Registry     string            `json:"registry"`
	ID           string            `json:"id"`
	Link         string            `json:"link"`
	State        umbrella.State    `json:"state"`
	Applied      bool              `json:"applied"`
	Closed       bool              `json:"closed"`
	Refused      bool              `json:"refused,omitempty"`
	Reason       string            `json:"reason,omitempty"`
	Summary      string            `json:"summary,omitempty"`
	Members      []umbrella.Member `json:"members"`
	Blocking     []umbrella.Member `json:"blocking,omitempty"`
	ApplyCommand string            `json:"apply_command,omitempty"`
}

CloseDocument is the JSON envelope emitted by `wb umbrella close`.

type Dependencies

type Dependencies struct {
	DefaultRegistry func() (string, error)
	Providers       *umbrella.Registry
	Members         func(projectsRoot string, ref umbrella.Ref) ([]umbrella.Member, error)
}

Dependencies injects provider, config, and WB member lookup seams.

type ShowDocument

type ShowDocument struct {
	Ref          string            `json:"ref"`
	Registry     string            `json:"registry"`
	ID           string            `json:"id"`
	Link         string            `json:"link"`
	State        umbrella.State    `json:"state"`
	Members      []umbrella.Member `json:"members"`
	ReadyToClose bool              `json:"ready_to_close"`
	CloseCommand string            `json:"close_command,omitempty"`
}

ShowDocument is the JSON envelope emitted by `wb umbrella show`.

Jump to

Keyboard shortcuts

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