github.com/elves/elvish@v0.15.0/cmd/withweb/elvish/main.go (about)

     1  // Command elvish is an alternative main program of Elvish that includes the web
     2  // subprogram.
     3  package main
     4  
     5  import (
     6  	"os"
     7  
     8  	"github.com/elves/elvish/pkg/buildinfo"
     9  	"github.com/elves/elvish/pkg/daemon"
    10  	"github.com/elves/elvish/pkg/prog"
    11  	"github.com/elves/elvish/pkg/shell"
    12  	"github.com/elves/elvish/pkg/web"
    13  )
    14  
    15  func main() {
    16  	os.Exit(prog.Run(
    17  		[3]*os.File{os.Stdin, os.Stdout, os.Stderr}, os.Args,
    18  		buildinfo.Program, daemon.Program, web.Program, shell.Program))
    19  }