SoftInstigate / http-shell

HTTP Shell is a CLI tool based on the Kui framework that provides developers a modern alternative to http clients for interacting with APIs.
Apache License 2.0
12 stars 1 forks source link

Enhance help http-shell by sections, navigations and click-executable example #2

Closed myan9 closed 4 years ago

myan9 commented 4 years ago

Also bump to Kui version 6.0.7

This PR is just a suggestion for potential enhancement of help http-shell command. Please feel free to riff on it.

In this PR, @starpit and I ported help http-shell command to use Kui NavResponse, so the help output can be divided into sections. Users can click to navigate each sections. We also transform some examples to be click-executable. For example, users can click e.g. h set url http://127.0.0.1:8080 in the second screenshot to execute that command directly.

I bumped the Kui version to 6.0.7 to pick up some UX fixes necessary for this PR.

Screen Shot 2020-10-23 at 2 26 14 PM Screen Shot 2020-10-23 at 2 26 15 PM Screen Shot 2020-10-23 at 2 26 19 PM

I think this should also benefit from inline sidecar, when that is released soon in 9.1.0. Screen Shot 2020-10-23 at 10 20 27 AM