-
-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow list
to be used in default_tasks
#421
Comments
doit has the concept of "commands" and "tasks". The default command is Simply switching the default command to I have seen people define the "default" task just to print a help message, like I do not think it is worth the trouble to implement what you are suggesting... |
What I do is something like this: def task(func):
func.create_doit_tasks = func
return func
DOIT_CONFIG = {
'default_tasks': ['_list'],
}
@task
def _list():
return dict(actions=["doit list"]) Then using just ...
So, I'm not sure my approach is equivalent to that tentative |
Right now,
default_tasks
should contain tasks from the dodo.py configuration.Sometimes, there are projects, which do not have a good default.
If would be nice to have
"default_tasks": ["list"]
, so when I typedoit
, I get a nice description of available commands.Describe alternatives you've considered
.
is called (https://stackoverflow.com/questions/2057689/how-does-make-app-know-default-target-to-build-if-no-target-is-specified). I can for example have a nicehelp
command.dodo list
itself, but it won't work, because it needs to lock the DB.The text was updated successfully, but these errors were encountered: