app

package
v0.0.1-alpha1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 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 App

type App struct {
	Command
}

App represents main application object.

func NewApp

func NewApp(client plugins.Interface) *App

NewApp configures App (main application) with default params and initializes its internals.

type Command

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

Command is base command for running sub ones.

func (*Command) Register

func (c *Command) Register() *cobra.Command

Register return configured cobra.Command object for binding cobra commands together on a top level.

type Commands

type Commands struct {
	Command
}

Commands prints available commands in a table format on a screen.

func NewCommands

func NewCommands(client plugins.Interface) *Commands

NewCommands creates & configures Commands.

Source Files

  • base.go
  • commands.go
  • main.go

Jump to

Keyboard shortcuts

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