You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/commands/add.go
+31-2Lines changed: 31 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ import (
8
8
gopath "path"
9
9
"strings"
10
10
11
+
"github.com/ipfs/kubo/config"
11
12
"github.com/ipfs/kubo/core/commands/cmdenv"
12
13
13
14
"github.com/cheggaaa/pb"
@@ -155,12 +156,12 @@ See 'dag export' and 'dag import' for more information.
155
156
cmds.BoolOption(trickleOptionName, "t", "Use trickle-dag format for dag generation."),
156
157
cmds.BoolOption(onlyHashOptionName, "n", "Only chunk and hash - do not write to disk."),
157
158
cmds.BoolOption(wrapOptionName, "w", "Wrap files with a directory object."),
158
-
cmds.StringOption(chunkerOptionName, "s", "Chunking algorithm, size-[bytes], rabin-[min]-[avg]-[max] or buzhash").WithDefault("size-262144"),
159
+
cmds.StringOption(chunkerOptionName, "s", "Chunking algorithm, size-[bytes], rabin-[min]-[avg]-[max] or buzhash"),
159
160
cmds.BoolOption(rawLeavesOptionName, "Use raw blocks for leaf nodes."),
160
161
cmds.BoolOption(noCopyOptionName, "Add the file using filestore. Implies raw-leaves. (experimental)"),
161
162
cmds.BoolOption(fstoreCacheOptionName, "Check the filestore for pre-existing blocks. (experimental)"),
162
163
cmds.IntOption(cidVersionOptionName, "CID version. Defaults to 0 unless an option that depends on CIDv1 is passed. Passing version 1 will cause the raw-leaves option to default to true."),
163
-
cmds.StringOption(hashOptionName, "Hash function to use. Implies CIDv1 if not sha2-256. (experimental)").WithDefault("sha2-256"),
164
+
cmds.StringOption(hashOptionName, "Hash function to use. Implies CIDv1 if not sha2-256. (experimental)"),
164
165
cmds.BoolOption(inlineOptionName, "Inline small blocks into CIDs. (experimental)"),
165
166
cmds.IntOption(inlineLimitOptionName, "Maximum block size to inline. (experimental)").WithDefault(32),
166
167
cmds.BoolOption(pinOptionName, "Pin locally to protect added files from garbage collection.").WithDefault(true),
@@ -191,6 +192,16 @@ See 'dag export' and 'dag import' for more information.
0 commit comments