package debug

import "github.com/docker/buildx/commands/debug"

Index

Functions

func RootCmd

func RootCmd(dockerCli command.Cli, children ...DebuggableCmd) *cobra.Command

Types

type DebugConfig

type DebugConfig struct {
	// InvokeFlag is a flag to configure the launched debugger and the commaned executed on the debugger.
	InvokeFlag string

	// OnFlag is a flag to configure the timing of launching the debugger.
	OnFlag string
}

DebugConfig is a user-specified configuration for the debugger.

type DebuggableCmd

type DebuggableCmd interface {
	// NewDebugger returns the new *cobra.Command with support for the debugger with recognizing DebugConfig.
	NewDebugger(*DebugConfig) *cobra.Command
}

DebuggableCmd is a command that supports debugger with recognizing the user-specified DebugConfig.

Source Files

root.go

Version
v0.22.0 (latest)
Published
Mar 17, 2025
Platform
linux/amd64
Imports
15 packages
Last checked
4 weeks ago

Tools for package owners.