9907f7b7fb
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
38 lines
556 B
Go
38 lines
556 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
logging "github.com/ipfs/go-log"
|
|
"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,
|
|
noncefix,
|
|
}
|
|
|
|
app := &cli.App{
|
|
Name: "lotus-shed",
|
|
Usage: "A place for all the lotus tools",
|
|
Version: build.Version,
|
|
Commands: local,
|
|
}
|
|
|
|
if err := app.Run(os.Args); err != nil {
|
|
log.Warnf("%+v", err)
|
|
os.Exit(1)
|
|
return
|
|
}
|
|
}
|