-
Notifications
You must be signed in to change notification settings - Fork 15
iroh add command #179
Comments
We want progress bars here first, not yet for |
I'll note the reason why I made In general I've tried to look at a lot of |
Reconciling your flags with mine:
|
in kubo |
Full help text, also matched to the CLI spike branch:
|
Given that we have a progress bar based user interface this is likely less relevant. I think we may be better off with a |
The whole
bit doesn't seem like we'll implement it in this form, given that we anticipate having a single progress bar with a status line that indicates the current file. #183 |
I imagine |
I'm not sure how to implement short forms of |
yes
Don't implement short forms in this case. |
If I understand it correctly then wee could call |
iroh-ctl add [--recursive | -r] [-q | --quiet] [--progress=true] [-w | --wrap-with-directory=true] [-n | --only-hash] [-H | --hidden] <path>
Upload to IPFS a file or directory given by
path
.-r
or--recursive
is required ifpath
is a directory. If you omit it, the command fails with an error. This is to prevent you from uploading a directory by accident.--wrap=false
can be supplied to prevent Iroh from wrapping what’s uploaded in a directory. This means that the filename information of the root path is lost.--progress=false
suppresses the progress bar. It should default to that in non-interactive scenarios too.-q
or--quiet
makes all output go away, overriding any other options that control output.-n, --only-hash
: only chunk and hash, do not write to disk.-H, --hidden
: Include files that are hidden. Only takes effect on recursive add.Differences with Kubo:
ipfs add
does not wrap what’s uploaded into a directory by default. This means that the filename of the root path or directory is not known to the network.ipfs add
has a whole host of options to control the hashing algorithm and chunking.Test cases
-r
, failure-H
enabled-H
is enabledtrycmd
tests are a bit limited here as we can't really see that the correct underlying APIs are called. Instead we will have to rely on API-level tests where hopefully the right factoring can make us detect that the correct underlying code is called.Maybe later
--column
can be supplied multiple times to control the column names outputted. Pick fromaction
,cid
andpath
. If no--column
entries exist, all columns are outputted.-C
or--root-cid
shows no columns or progress bar, only the final root CID by which this content can be outputted. This should override any--column
specifications.The text was updated successfully, but these errors were encountered: