lando / core-next

Next generation Lando v4 runtime
https://docs.lando.dev/v/next
GNU General Public License v3.0
4 stars 4 forks source link

Lando CLI does not report an error when using a command that does not exist #81

Open hardyoyo opened 2 years ago

hardyoyo commented 2 years ago

For any lando project, if you try to run a command that does not exist, lando exits without any error. Some users might misinterpret this as a successful command.

You can duplicate this by running anything like:

lando this-command-does-not-exist

or maybe

lando poweroof

A colleague of mine has been running lando reload and was quite pleased with the speed of the command, but confused by the fact that their app never did reflect any changes. They really needed to run lando restart. Full "did you mean" coverage would be lovely, but... at least a "command not found" error message would be helpful.

pirog commented 2 years ago

When we rebase on OCLIF i think we will get this out of the box although not 100% sure given lando's CLI is dynamic based on the app