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

Suggestion: Allow a subtask to be called from a parent task. #143

Closed
connecteev opened this issue Jun 1, 2019 · 2 comments
Closed

Suggestion: Allow a subtask to be called from a parent task. #143

connecteev opened this issue Jun 1, 2019 · 2 comments

Comments

@connecteev
Copy link

Suggestion: Allow a subtask to be called from a parent task.

@story('s1', ['on' => ['localhost']])
    _task_s1
    common
@endstory

@task('_task_s1')
    subtask
@endtask

@task('common')
    echo "common";
@endtask

@task('subtask')
    echo "subtask called";
@endtask

This doesnt work and results in:

$ envoy run s1
[localhost]: sh: subtask: command not found
[✗] This task did not complete successfully on one of your servers.
@driesvints
Copy link
Member

It's not possible because you can't differentiate between envoy commands and cli commands inside tasks. You'll need to use a different story.

@connecteev
Copy link
Author

connecteev commented Jun 3, 2019

@driesvints without this as a feature, and #142 either, it results in duplicative code. Just a suggestion for a future release ;)

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

No branches or pull requests

2 participants