CLI vs GUI: Make Command Line Easier with Completion
Frankly, Command Line first looks mysterious and make you looks like a pro.
But when you spend more time living in the Terminal. It’s not that fun and easy
Let’s take running docker as an example.
GUI goodness: Multiple way to get it right
Any click in the region will do the jobs.
Any miss doesn’t seem to break anything. Everything can be seen.
CLI badness: Only one way to get it right
One typos break everything.
One way to get it right. Anything else break this.
$ dcoker ps
// WRONG !!
// WRONG !!
Solution: Completion
By installing some predefined completion list.
With the TAB
you can now
- show available command
- select that command
Let’s do it with docker example again. Download file here.
Now this will show what you can do like the GUI
More interesting it will complete docker run ...
with the correct input into the ...
and this is the most important things !
More .. about the options
Hope this help bring more happy time in the Terminal.
TGIF and cheers.