setdefault

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package setdefault implements the repo set-default command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdSetDefault

func NewCmdSetDefault(f *cmdutil.Factory, runF func(*SetDefaultOptions) error) *cobra.Command

NewCmdSetDefault creates the repo set-default command.

Types

type SetDefaultOptions

type SetDefaultOptions struct {
	IO       *iostreams.IOStreams
	Config   func() (config.Config, error)
	BaseRepo func() (string, error)

	Repository string
	View       bool
	Unset      bool
	JSON       bool
}

SetDefaultOptions configures the repo set-default command.

Source Files

  • setdefault.go

Jump to

Keyboard shortcuts

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