-
Notifications
You must be signed in to change notification settings - Fork 22
Conversation
c5519f7
to
365724b
Compare
I got the arguments working by putting the HTML request into double quotes. D'oh! |
Ok, now I am simply unable to get
Also weirdly, so does this:
I've added that second one to it's own section. |
Yeah, that is kind if a cli thing around the ipfs config show and replace (or at least I would expect for it to be that way :) )
This is probably an API error and the CLI is smart enough to compensate. Consider opening it as a bug in go-ipfs. |
## show | ||
+ Parameters | ||
+ arg1: "Datastore.Path" (string, required) - The key of the config entry | ||
+ arg2: "~/.ipfs/datastore" (string, required) - The value to set the config entry to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a note here saying that it can be any key of the config entry and that Datastore.Path
is just an example of one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. That's apiary format for an example; it is clear by the syntax that this is not the only possible option.
@diasdavid Updated to fix all of the POST and GET stuff. Also some small syntax fixes. |
Needs to be checked before #20 can be closed. |
+ Parameters | ||
+ arg1: "Datastore.Path" (string, required) - The key of the config entry. | ||
+ arg2: "~/.ipfs/datastore" (string, required) - The value to set the config entry to. | ||
+ bool (boolean, optional) - Set a boolean. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these are just default. //cc @whyrusleeping @RichardLitt Other than the last comment above, it seems this PR was reviewed twice, could you post a item list with things you would still like feedback? |
## show | ||
+ Parameters | ||
+ arg1: "Datastore.Path" (string, required) - The key of the config entry. | ||
+ arg2: "~/.ipfs/datastore" (string, required) - The value to set the config entry to. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this optional? See https://github.com/ipfs/http-api-spec/blob/feature/config/apiary.apib#L1038
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Good catch.
I need review or to do:
|
35d2e40
to
051db32
Compare
File and path are synonymous, |
@diasdavid Should ipfs config edit be included at all? Or should we remove it? What happens if I call in my browser? |
They are just default for every command, probably at some point in time there was other options, now it is always the same.
ipfs config edit is almost a convenience on top of
I vote to remove it
Better go one by one and see each case. |
I removed |
Some issues:
I was unable to get the second argument working, so it is currently not documented how to patch a config entry. I also was unable to meaningfully getWireshark says thatbool
andjson
flags working.encoding=json
is added to each command normally run by the CLI, as well asstream-channels=true
, but neither of these are mentioned in the CLI mans, which is odd. I'm not sure what they are doing.