cmd

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: ISC Imports: 8 Imported by: 0

Documentation

Overview

Package cmd provides a quick way to create derived interpreters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd(ctx *goal.Context, cfg Config) error

Cmd runs a goal interpreter with starting context ctx and the given help strings when using the repl. Command line usage is then as follows:

program-name [-e command] [-d] [-q] [-version] [path]

Types

type Config

type Config struct {
	Help        func() map[string]string
	ProgramName string
	Man         string
}

Config describes the possible configuration options when running a *goal.Context through Cmd.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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