cli

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package cli exposes donkey's CLI as a command that can be embedded in other urfave/cli applications.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(options RunOptions) *urfavecli.Command

Command returns donkey's command tree for attachment to another urfave/cli application.

func Run

func Run(ctx context.Context, args []string, options RunOptions) error

Run executes donkey as a standalone CLI.

Types

type RunOptions

type RunOptions struct {
	// DisableManagement omits commands and flags that install or manage the
	// donkey control plane. Commands that use an existing server remain
	// available.
	DisableManagement bool
	// Server provides the default donkey-server URL when the user has not
	// selected and saved one. An explicit login --server overrides it.
	Server string
}

RunOptions controls which donkey capabilities an embedding CLI exposes.

Jump to

Keyboard shortcuts

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