2019-12-09 15:09:23 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
|
2020-01-08 19:10:57 +00:00
|
|
|
logging "github.com/ipfs/go-log/v2"
|
2019-12-09 15:09:23 +00:00
|
|
|
"gopkg.in/urfave/cli.v2"
|
|
|
|
|
|
|
|
"github.com/filecoin-project/lotus/build"
|
|
|
|
)
|
|
|
|
|
|
|
|
var log = logging.Logger("lotus-shed")
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
logging.SetLogLevel("*", "INFO")
|
|
|
|
|
|
|
|
local := []*cli.Command{
|
|
|
|
base32Cmd,
|
|
|
|
base16Cmd,
|
|
|
|
keyinfoCmd,
|
|
|
|
peerkeyCmd,
|
2019-12-13 14:47:21 +00:00
|
|
|
noncefix,
|
2019-12-09 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
app := &cli.App{
|
|
|
|
Name: "lotus-shed",
|
|
|
|
Usage: "A place for all the lotus tools",
|
2019-12-17 15:26:16 +00:00
|
|
|
Version: build.BuildVersion,
|
2019-12-09 15:09:23 +00:00
|
|
|
Commands: local,
|
|
|
|
}
|
|
|
|
|
|
|
|
if err := app.Run(os.Args); err != nil {
|
|
|
|
log.Warnf("%+v", err)
|
|
|
|
os.Exit(1)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|