cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cli

type Cli struct {
	// contains filtered or unexported fields
}

func NewCli

func NewCli(sharingService *sharing.Service) *Cli

func (*Cli) Run

func (c *Cli) Run(ctx context.Context) error

type Handler

type Handler interface {
	Run(ctx context.Context, command *flags.Command) error
}

type Options

type Options struct {
	// Slice of bool will append 'true' each time the option
	// is encountered (can be set multiple times, like -vvv)
	Verbose []bool          `short:"v" long:"verbose" description:"Show verbose debug information"`
	Relay   *relayOptions   `command:"relay"`
	Share   *shareOptions   `command:"share"`
	Receive *receiveOptions `command:"receive"`
	Cert    *certOptions    `command:"cert"`
}

Jump to

Keyboard shortcuts

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