elvish: github.com/elves/elvish/pkg/program Index | Files | Directories

package program

import "github.com/elves/elvish/pkg/program"

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

Index

Package Files

buildinfo.go daemon.go json.go program.go usage.go

func Main Uses

func Main(fds [3]*os.File, args []string) int

type Program Uses

type Program interface {
    // Main runs the subprogram, with given standard files and arguments. The
    // return value will be used as the exit status of the entire program.
    Main(fds [3]*os.File, args []string) int
}

Program represents a subprogram.

func FindProgram Uses

func FindProgram(flag *flagSet) Program

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

Directories

PathSynopsis
daemonPackage daemon provides the entry point of the daemon sub-program and helpers to spawn a daemon process.
shellPackage shell is the entry point for the terminal interface of Elvish.
webPackage web is the entry point for the backend of the web interface of Elvish.

Package program imports 15 packages (graph) and is imported by 2 packages. Updated 2020-03-28. Refresh now. Tools for package owners.