cli

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

README

github.com/open-cmi/cli

command line interface 

how to use

git clone https://github.com/open-cmi/cli.git
cd cli/examples
go run main.go

Developers

  • open-cmi

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

type CLI struct {
	Prompt              *prompt.Prompt
	DefaultViewName     string
	DefaultPromptPrefix string
}

func New

func New(title string) *CLI

func (*CLI) AppendView

func (c *CLI) AppendView(parent string, name string, promptPrefix string) error

func (*CLI) NewDefaultView

func (c *CLI) NewDefaultView(name string, promptPrefix string) error

NewDefaultView new default view

func (*CLI) Run

func (c *CLI) Run()

Directories

Path Synopsis
_tools
complete_file command
sigwinch command
vt100_debug command
container
internal

Jump to

Keyboard shortcuts

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