kubo/test/dependencies/iptb/iptb.go
Steven Allen 5894291139 gx: update go-ipfs-config
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-20 10:07:32 -08: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/QmQLcRTxMtdUmmTse5uoqBLM5YZgjZP4qiCPynY6qEz6qA/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)
}
}