root

package
v0.0.0-...-a7e7b69 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: MPL-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CREDS_CMD   = "credential"
	MNET_CMD    = "net"
	PROCESS_CMD = "process"
)

Variables

View Source
var ROOT_SUGGESTIONS = []prompt.Suggest{
	{Text: modes.JUMP_CMD, Description: "Mode jumping menu"},
	{Text: modes.EXIT_CMD, Description: "Exit mcli"},
}

Functions

This section is empty.

Types

type RootMode

type RootMode struct {
	modes.BaseMode
}

Root cmd is meant to be the first menu/cmd in the marconi cli

func NewRootMode

func NewRootMode(c *context.Context) *RootMode

Create a new root cmd struct, use this to create a RootMode otherwise suggestion and handlers wont be properly initialized

func (*RootMode) HandleCommand

func (rm *RootMode) HandleCommand(args []string)

func (*RootMode) Name

func (rm *RootMode) Name() string

Jump to

Keyboard shortcuts

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