core

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrentDir, _ = os.Getwd()

CurrentDir is the current directory where Merlin was executed from

View Source
var Debug = false

Debug puts Merlin into debug mode and displays debug messages

View Source
var MessageChannel = make(chan messages.UserMessage)

MessageChannel is used to input user messages that are eventually written to STDOUT on the CLI application

Prompt is the command line interface prompt object

View Source
var Verbose = false

Verbose puts Merlin into verbose mode and displays verbose messages

Functions

func Confirm

func Confirm(question string) bool

Confirm reads in a string and returns true if the string is y or yes but does not provide the prompt question

func DisplayTable

func DisplayTable(header []string, rows [][]string)

DisplayTable writes arbitrary data rows to STDOUT

func ExecuteCommand

func ExecuteCommand(name string, arg []string)

ExecuteCommand runs commands on the host operating system where the CLI is being used

func Exit

func Exit()

Exit will prompt the user to confirm if they want to exit

Types

This section is empty.

Jump to

Keyboard shortcuts

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