mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-07 01:08:08 +08:00
Add iptb dep
License: MIT Signed-off-by: Travis Person <travis@protocol.ai>
This commit is contained in:
parent
569eeb8f82
commit
e68c10abf4
33
test/dependencies/iptb/iptb.go
Normal file
33
test/dependencies/iptb/iptb.go
Normal file
@ -0,0 +1,33 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
cli "gx/ipfs/QmU5w6sBozzDcfHXuKn1ZZAYuBw1rE57YYRVxgUcCjEX8C/iptb/cli"
|
||||
plugin "gx/ipfs/QmU5w6sBozzDcfHXuKn1ZZAYuBw1rE57YYRVxgUcCjEX8C/iptb/plugins/ipfs/local"
|
||||
testbed "gx/ipfs/QmU5w6sBozzDcfHXuKn1ZZAYuBw1rE57YYRVxgUcCjEX8C/iptb/testbed"
|
||||
)
|
||||
|
||||
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)
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user