You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/02/17 14:06:08 UTC

[GitHub] janpio opened a new issue #75: Unsuccessful (because not existing) cordova commands

janpio opened a new issue #75: Unsuccessful (because not existing) cordova commands
URL: https://github.com/apache/cordova/issues/75
 
 
   I looked a bit at the Cordova Telemetry data about the commands executed: 
   https://datastudio.google.com/reporting/0B-Ja5cNOX_XLTElHdWd4V2NUem8/page/zkJF
   
   Looking at the `unsuccessful` commands, you quickly notice that quite a few are common misunderstandings (or just mistypes of) what Cordova commands exist:
   
   ![image](https://user-images.githubusercontent.com/183673/52914110-a41f3c00-32c4-11e9-9f10-d0280aec66b5.png)
   (standard current data set, filtered to >100 usages)
   
   When the user uses one of those commands they already get a helpful note to use the help command:
   
   ```
   λ cordova install                                                                           
   Cordova does not know install; try `cordova help` for a list of all the available commands. 
   ```
   
   But I think we could do better. 
   
   For all the subcommands that are missing `platform` or `plugin`, we could just tell them that e.g. "`add` is only a valid subcommand of `cordova platform` or `cordova plugin`" (or similar, same for `remove` and `rm` etc.).
   
   `ios` and `android` are only valid parametrs for subcommands of `platform` like `cordova platform add`, `cordova platform run` etc.
   
   Common typos we could just accept and redirect to the correct command: `platfrom`, `plataform`, `plaform`, `plateform`, `paltform`, `requirement` etc.
   
   Mixups between CLIs as well: `start` should probably be `create` (and is because Ionic CLI calls their "create new project" command `start`)
   
   ---
   
   Is there any reason why we should _not_ do this and improve the live of our users?
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org