@cryptotaxi247 / kubo / commits / e68c10abf

Add iptb dep

License: MIT Signed-off-by: Travis Person <travis@protocol.ai>

Travis Person committed Oct 23, 2018 at 11:29 UTC e68c10abf487011ecfcf705dd3642803368a84ef
1 file changed +33
test/dependencies/iptb/iptb.go new
+33
@@ -0,0 +1,33 @@
1 +package main
2 +
3 +import (
4 + "fmt"
5 + "os"
6 +
7 + cli "gx/ipfs/QmU5w6sBozzDcfHXuKn1ZZAYuBw1rE57YYRVxgUcCjEX8C/iptb/cli"
8 + plugin "gx/ipfs/QmU5w6sBozzDcfHXuKn1ZZAYuBw1rE57YYRVxgUcCjEX8C/iptb/plugins/ipfs/local"
9 + testbed "gx/ipfs/QmU5w6sBozzDcfHXuKn1ZZAYuBw1rE57YYRVxgUcCjEX8C/iptb/testbed"
10 +)
11 +
12 +func init() {
13 + _, err := testbed.RegisterPlugin(testbed.IptbPlugin{
14 + From: "<builtin>",
15 + NewNode: plugin.NewNode,
16 + GetAttrList: plugin.GetAttrList,
17 + GetAttrDesc: plugin.GetAttrDesc,
18 + PluginName: plugin.PluginName,
19 + BuiltIn: true,
20 + }, false)
21 +
22 + if err != nil {
23 + panic(err)
24 + }
25 +}
26 +
27 +func main() {
28 + cli := cli.NewCli()
29 + if err := cli.Run(os.Args); err != nil {
30 + fmt.Fprintf(cli.ErrWriter, "%s\n", err)
31 + os.Exit(1)
32 + }
33 +}