process

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const NAME = "process"

Name of Mode

Variables

View Source
var PROCESS_SUGGESTIONS = []prompt.Suggest{
	{Text: process_commands.START, Description: "Start a process and manage its lifetime."},
	{Text: process_commands.STOP, Description: "Stop a managed process."},
	{Text: process_commands.RESTART, Description: "Restart a managed process."},
	{Text: process_commands.LIST, Description: "List running processes."},
	{Text: process_commands.VERSION, Description: "Show version of each component."},
	{Text: process_commands.UTIL, Description: "Utility commands"},
	{Text: modes.RETURN_TO_ROOT, Description: "Return to home menu"},
	{Text: modes.EXIT_CMD, Description: "Exit mcli"},
}

Mode suggestions

View Source
var PROCESS_UTIL_SUGGESTIONS = []prompt.Suggest{
	{Text: process_commands.RESET, Description: "Back up user credentials and clean up all the files of gmeth, marconid and middleware."},
}

Mode suggestions

Functions

This section is empty.

Types

type ProcessMode

type ProcessMode struct {
	modes.BaseMode
}

Menu/Mode for process operations

func NewProcessMode

func NewProcessMode(c *context.Context) *ProcessMode

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

func (*ProcessMode) CliPrefix

func (pm *ProcessMode) CliPrefix() (string, bool)

func (*ProcessMode) HandleCommand

func (pm *ProcessMode) HandleCommand(args []string)

func (*ProcessMode) Name

func (pm *ProcessMode) Name() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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