mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-13 09:57:51 +08:00
4ac464a168
An alternative main program that includes the web program is available under cmd/withweb/elvish. This addresses #375. RAM consumption measured by 5 executions of `elvish -c 'ps -orss $pid'`: * w/ web = 9530 KB * w/o web = 9319 KB, 211 KB or 2.2% smaller. Binary size: * w/ web = 14361610 bytes * w/o web = 13810355 bytes, 538 KB or 3.8% smaller
21 lines
634 B
Go
21 lines
634 B
Go
// Elvish is a cross-platform shell, supporting Linux, BSDs and Windows. It
|
|
// features an expressive programming language, with features like namespacing
|
|
// and anonymous functions, and a fully programmable user interface with
|
|
// friendly defaults. It is suitable for both interactive use and scripting.
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/elves/elvish/pkg/buildinfo"
|
|
"github.com/elves/elvish/pkg/daemon"
|
|
"github.com/elves/elvish/pkg/prog"
|
|
"github.com/elves/elvish/pkg/shell"
|
|
)
|
|
|
|
func main() {
|
|
os.Exit(prog.Run(
|
|
[3]*os.File{os.Stdin, os.Stdout, os.Stderr}, os.Args,
|
|
buildinfo.Program, daemon.Program, shell.Program))
|
|
}
|