CLI vs GUI: Make Command Line Easier with Completion

CLI vs GUI: Make Command Line Easier with Completion

DevOps Jul 13, 2023

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 !!

Solution: Completion

By installing some predefined completion list.

With the TAB you can now
  1. show available command
  2. select that command

Let’s do it with docker example again. Download file here.

Docker Compose overview
Learn how to use Docker Compose to define and run multi-container applications with this detailed introduction to the tool.

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.

Tags

TeamCMD

We are CODEMONDAY team and provide a variety of content about Business , technology, and Programming. Let's enjoy it with us.