Auto-completion


Meco™ offers feature rich CLI (Command Line Interface) including flag and flag value auto-completion, which makes interacting with the entire ecosystem a breeze.

Activating Meco™

Run a terminal window or open a new tab on existing one, type and execute the following command if you are working on Linux OS and Mac OS.

meco-init

Run a new PowerShell window, type and execute the following command if you are working on Windows OS.

meco-init

This command makes Meco™ command, and it's required environment available in the session. You can start using Meco™ after you run the command.

Please Note: If you already know how auto-completion works on your respective platform (Bash on Linux OS and Mac OS, PowerShell on Windows OS) you can skip the rest of this page.

Auto-completion on Linux OS and Mac OS

Type mec then press tab key on the keyboard in order to auto-complete the command. Once you did this you can see that the command would be autocompleted to meco-init. Same practice applies to meco command after you invoked meco-init.

After you complete typing/auto-completing the meco command give it a space and type --pro and press tab key. This would auto-complete --project flag. Give it a space to auto-complete the value of this flag and then press tab again. You should see an output like the one below

meco --project
master van

Pick the name of the project that you would like to initialize and start typing its name then press tab key to auto-complete it.

Repeat these steps for the flags that you want to provide.

Auto-completion on Windows OS

Please only use short flags since long flags are not available on Windows OS.

Type meco then press tab key on the keyboard in order cycle through the commands that starts with it. Unlike Linux OS and Mac OS, commands are cycled in place on Windows OS, so you can auto-complete the entire command at once. Stop pressing tab key when meco-init command appears. Same practice applies to meco command after you invoked meco-init.

After you complete typing/auto-completing the command give it a space and type -p and press tab key. Give it a space to auto-complete the value of this flag and then press tab again. You should see an output like the one below.

meco -p master

You can keep pressing tab key on the keyboard to cycle through all available values for the flag. Stop when you see the name of the project that you want to initialize.

Repeat these steps for the flags that you want to provide.