This repository was archived by the owner on Feb 12, 2024. It is now read-only.
File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ module.exports = (common, options) => {
55
55
56
56
after ( ( ) => common . clean ( ) )
57
57
58
- it ( 'should respect timeout option when adding files ' , ( ) => {
58
+ it ( 'should respect timeout option when adding file ' , ( ) => {
59
59
return testTimeout ( ( ) => ipfs . add ( 'Hello' , {
60
60
timeout : 1
61
61
} ) )
Original file line number Diff line number Diff line change @@ -27,7 +27,10 @@ module.exports = {
27
27
type : 'number' ,
28
28
alias : 'b' ,
29
29
default : '2048' ,
30
- describe : 'Number of bits to use in the generated RSA private key (defaults to 2048)'
30
+ describe : 'Number of bits to use in the generated RSA private key (defaults to 2048)' ,
31
+ coerce : ( value ) => {
32
+ return Number ( value )
33
+ }
31
34
} )
32
35
. option ( 'empty-repo' , {
33
36
alias : 'e' ,
@@ -69,6 +72,7 @@ module.exports = {
69
72
const IPFS = require ( 'ipfs-core' )
70
73
const Repo = require ( 'ipfs-repo' )
71
74
75
+ console . log ( typeof argv . bits )
72
76
try {
73
77
await IPFS . create ( {
74
78
repo : new Repo ( repoPath ) ,
@@ -84,7 +88,10 @@ module.exports = {
84
88
// @ts -ignore - Expects more than {}
85
89
config
86
90
} )
91
+
92
+ console . log ( '<<< initialized' )
87
93
} catch ( err ) {
94
+ console . error ( err )
88
95
if ( err . code === 'EACCES' ) {
89
96
err . message = 'EACCES: permission denied, stat $IPFS_PATH/version'
90
97
}
You can’t perform that action at this time.
0 commit comments