program

package
v7.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: BSD-3-Clause Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package program provides the entry point to Elvish. Its subpackages correspond to subprograms of Elvish.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(allArgs []string) int

Types

type Program

type Program interface {
	// Main calls the subprogram with arguments. The return value will be used
	// as the exit status of the entire program.
	Main(args []string) int
}

Program represents a subprogram.

func FindProgram

func FindProgram(flag *flagSet) Program

FindProgram finds a suitable Program according to flags. It does not have any side effects.

type ShowBuildInfo

type ShowBuildInfo struct {
}

ShowBuildInfo shows build information.

func (ShowBuildInfo) Main

func (info ShowBuildInfo) Main([]string) int

type ShowCorrectUsage

type ShowCorrectUsage struct {
	// contains filtered or unexported fields
}

func (ShowCorrectUsage) Main

func (s ShowCorrectUsage) Main([]string) int

type ShowHelp

type ShowHelp struct {
	// contains filtered or unexported fields
}

ShowHelp shows help message.

func (ShowHelp) Main

func (s ShowHelp) Main([]string) int

type ShowVersion

type ShowVersion struct{}

ShowVersion shows the version.

func (ShowVersion) Main

func (ShowVersion) Main([]string) int

Directories

Path Synopsis
Package shell is the entry point for the terminal interface of Elvish.
Package shell is the entry point for the terminal interface of Elvish.

Jump to

Keyboard shortcuts

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