This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree 4 files changed +47
-1
lines changed
4 files changed +47
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ module.exports = (arg) => {
7
7
8
8
return {
9
9
gen : require ( './gen' ) ( send ) ,
10
- list : require ( './list' ) ( send )
10
+ list : require ( './list' ) ( send ) ,
11
+ rename : require ( './rename' ) ( send ) ,
12
+ rm : require ( './rm' ) ( send )
11
13
}
12
14
}
Original file line number Diff line number Diff line change
1
+ 'use strict'
2
+
3
+ const promisify = require ( 'promisify-es6' )
4
+
5
+ module . exports = ( send ) => {
6
+ return promisify ( ( oldName , newName , callback ) => {
7
+ send ( {
8
+ path : 'key/rename' ,
9
+ args : [ oldName , newName ]
10
+ } , callback )
11
+ } )
12
+ }
Original file line number Diff line number Diff line change
1
+ 'use strict'
2
+
3
+ const promisify = require ( 'promisify-es6' )
4
+
5
+ module . exports = ( send ) => {
6
+ return promisify ( ( args , callback ) => {
7
+ send ( {
8
+ path : 'key/rm' ,
9
+ args : args
10
+ } , callback )
11
+ } )
12
+ }
Original file line number Diff line number Diff line change
1
+ /* eslint-env mocha */
2
+
3
+ 'use strict'
4
+
5
+ const test = require ( 'interface-ipfs-core' )
6
+ const Factory = require ( '../ipfs-factory/client' )
7
+
8
+ let factory
9
+
10
+ const common = {
11
+ setup : function ( callback ) {
12
+ factory = new Factory ( )
13
+ callback ( null , factory )
14
+ } ,
15
+ teardown : function ( callback ) {
16
+ factory . dismantle ( callback )
17
+ }
18
+ }
19
+
20
+ test . key ( common )
You can’t perform that action at this time.
0 commit comments