32 lines
516 B
Go
32 lines
516 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
|
|
"gopkg.in/urfave/cli.v2"
|
|
|
|
"github.com/filecoin-project/go-lotus/build"
|
|
lcli "github.com/filecoin-project/go-lotus/cli"
|
|
"github.com/filecoin-project/go-lotus/daemon"
|
|
)
|
|
|
|
func main() {
|
|
local := []*cli.Command{
|
|
daemon.Cmd,
|
|
}
|
|
|
|
app := &cli.App{
|
|
Name: "lotus",
|
|
Usage: "Filecoin decentralized storage network client",
|
|
Version: build.Version,
|
|
|
|
Commands: append(local, lcli.Commands...),
|
|
}
|
|
|
|
if err := app.Run(os.Args); err != nil {
|
|
log.Println(err)
|
|
return
|
|
}
|
|
}
|