kubo/test/dependencies/iptb/iptb.go
Travis Person fcf1043683 Update iptb and iptb-plugins
License: MIT
Signed-off-by: Travis Person <travis@protocol.ai>
2018-11-01 19:46:06 -07:00

35 lines
712 B
Go

package main
import (
"fmt"
"os"
cli "gx/ipfs/QmckeQ2zrYLAXoSHYTGn5BDdb22BqbUoHEHm8KZ9YWRxd1/iptb/cli"
testbed "gx/ipfs/QmckeQ2zrYLAXoSHYTGn5BDdb22BqbUoHEHm8KZ9YWRxd1/iptb/testbed"
plugin "gx/ipfs/QmX51YXMSkZWJ6fQFP8ieQvwTbmLFK1YbGHqeJwgLvjkZU/iptb-plugins/local"
)
func init() {
_, err := testbed.RegisterPlugin(testbed.IptbPlugin{
From: "<builtin>",
NewNode: plugin.NewNode,
GetAttrList: plugin.GetAttrList,
GetAttrDesc: plugin.GetAttrDesc,
PluginName: plugin.PluginName,
BuiltIn: true,
}, false)
if err != nil {
panic(err)
}
}
func main() {
cli := cli.NewCli()
if err := cli.Run(os.Args); err != nil {
fmt.Fprintf(cli.ErrWriter, "%s\n", err)
os.Exit(1)
}
}