-
Notifications
You must be signed in to change notification settings - Fork 66
Running ml from Roxy dir returns error instead of usage #210
Comments
I think the "you must run init" message is appropriate. If we were going to change that, I don't think the change could be based on the name of the directory. I've got Roxy in lots of different directories. |
It is at least an attempt to prevent ourselves from polluting the Roxy development folder. I'm certain I'm going to blindly run ./ml init at some point, and not being sure how that will going to break the roxy git project (or any change I might have added there).. |
I admit it is fragile, though. Better ideas welcome.. |
If you run "ml init" in a Roxy project directory that has already been initialized, Roxy will error out when it sees that deploy/ml-config.xml already exists. You then have the option to force it to overwrite the existing files. If you do that, you still wouldn't affect the Roxy git project unless you both check in your changes and push them, and your changes went to this repo (instead of to a fork). If you're worried that after cloning Roxy, you might accidentally use that copy for a separate project based on Roxy, ... don't do that. :) To use Roxy for projects, all you need is the ml script in your path. I do keep a copy of the Roxy project itself for use when I'm working on Roxy itself, but I find that pretty simple to keep clear. I guess I'm not seeing a problem here. |
I am talking about running ./ml from within the folder that contains the git clone of Roxy for developing on Roxy itself. For instance to run self-test, working on improving usage/help, etc.. |
I have pushed some changes to grtjn/roxy dev branch that (attempt to) make it show the usage of 'new' if you don't provide params, or just -h or --help.. |
Rethinking this issue. So, doing
The first would a simple fix. Just check for empty args or a single -h/--help arg at the beginning of ml.rb, and simply show usage in that case. The second is harder. You need to detect a roxy clone first. That is possible with the help of |
I agree that you should be able to get help without initializing a project, that makes sense. I actually do "ml init" on my development copy all the time, because I need a project to work with to add and test a feature. I just don't check in the generated files. We could just add those the .gitignore, on the assumption that you'll only get that file if you clone Roxy, whereas it will be removed if you run "new". |
Good to know that |
fixed in dev |
Running ./ml directly from roxy root dir returns:
ERROR: You must run ml init to configure your application.
instead of the 'new' usage..
The text was updated successfully, but these errors were encountered: