New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add -r should suggest next steps #6647
Comments
As he admits, this is simply how CLI tools work. Instead of trying to make the go-ipfs CLI something it isn't, we should:
We should still offer the CLI tool as an option but CLI users generally don't expect fancy messages. |
What is the downside to a short helpful message? How would that minor string addition turn go-ipfs into something it is not? Why are we limiting the options to an abstract common denominator of "cli tools", which historically are considered terribly unhelpful except to the most proficient users? |
My two concerns are:
Having a nice and friendly "you did a thing!" message is useful for (some) new users running the command for the first time but is really annoying for everyone else running the command for the hundredth time. These commands are meant to be run over and over so they're optimized for that use-case. Also note, as with most unix commands, the output of ipfs add -r foobar | while read event cid path; do
# do something...
done On the other hand, commands like Given these constraints, we can implement this as follows:
In this case, the help message would be:
|
My take here is that given that we can build nice UIs on top of IPFS (desktop), we should avoid bloating the CLIs to make them user-friendly for people that are not used to work with CLI interfaces. However, that should not be a excuse for not having awesome CLI documentation. In this case Note that CLIs are effecitvely APIs (more so in go-ipfs since it matches 1to1 with the HTTP API). I disagree that CLIs are historically unhelpful. They are the best for what they do: an interoperable text interface (not only to humans but to other programs). |
We should add a short message that suggests what's possible, or eases next steps to view the added data, eg:
"Recursive add complete! You can preview on the public gateway at https://..."
Location
ipfs add -r .
Description
From https://macwright.org/2019/06/08/ipfs-again.html:
The text was updated successfully, but these errors were encountered: