runtime

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

type Runtime struct {
	RootFlags *shared.RootFlags
	// contains filtered or unexported fields
}

Runtime owns cross-cutting CLI wiring that should not be spread across commands and shared helpers.

func Ensure

func Ensure(rt *Runtime) *Runtime

Ensure returns rt when non-nil and otherwise creates a detached runtime.

func NewDetached

func NewDetached() *Runtime

NewDetached constructs a runtime for command packages that do not need root flag binding but still want shared client factories.

func NewRoot

func NewRoot(fs *flag.FlagSet) *Runtime

NewRoot constructs a runtime and binds root-level flags to the provided FlagSet.

func (*Runtime) ApplyRootContext

func (rt *Runtime) ApplyRootContext(ctx context.Context) (context.Context, error)

ApplyRootContext applies root flag side effects and returns the derived execution context.

func (*Runtime) NewPlayService

func (rt *Runtime) NewPlayService(ctx context.Context) (*playclient.Service, error)

NewPlayService creates an authenticated Android Publisher service.

Jump to

Keyboard shortcuts

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