API shell text does not apply to Windows #1008
Labels
effort/hours
Estimated to take one or several hours
exp/novice
Someone with a little familiarity can pick up
need/maintainers-input
Needs input from the current maintainer(s)
P2
Medium: Good to have, but can wait until someone steps up
status/ready
Ready to be worked
topic/design-ux
UX strategy, research, not solely visual design
Describe the bug
When failing to connect to the daemon, the webui shows shell prompts that are invalid on Windows.
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://127.0.0.1:8080", "http://127.0.0.1:5001", "https://webui.ipfs.io"]'
returns these messages in:
Error: failed to unmarshal json. invalid character 'h' looking for beginning of value
Error: Unknown Command "API.HTTPHeaders.Access-Control-Allow-Origin"
Valid forms of this are:
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '[\"http://127.0.0.1:8080\", \"http://127.0.0.1:5001\", \"https://webui.ipfs.io\"]' ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '[\"PUT\", \"GET\", \"POST\"]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin "["""http://127.0.0.1:8080""", """http://127.0.0.1:5001""", """https://webui.ipfs.io"""]" ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods "["""PUT""", """GET""", """POST"""]"
It would be nice if the shell element had some way to select what command shell you're using, and formatted the string so the arguments matched the escape type.
The text was updated successfully, but these errors were encountered: