Skip to content
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

FEATURE REQUEST: default task #21

Open
skull-squadron opened this issue May 30, 2023 · 3 comments
Open

FEATURE REQUEST: default task #21

skull-squadron opened this issue May 30, 2023 · 3 comments

Comments

@skull-squadron
Copy link

The simplest way seems to be to look for a task named "default" and append it to ARGV.clone when it's empty?. If there's no task named default, then raise.

Current hack:

task "default", ["do:something", "something:else"] do
end

ARGV << "default" if ARGV.empty?
Sam.help
@imdrasil
Copy link
Owner

imdrasil commented Jun 5, 2023

thank you for this suggestion. Is it dictated by a real world scenario of just a suggestion? From my experience such kind of behavior would not be expected - normally you always have some kind of "script/task name" to execute (e.g. in npm, ruby's rake and so on).

@skull-squadron
Copy link
Author

skull-squadron commented Jun 5, 2023 via email

@imdrasil
Copy link
Owner

imdrasil commented Jun 7, 2023

looks reasonable. I'll take a look at this later this week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants