Skip to content

Command sequence #57

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

Open
jano42 opened this issue Oct 6, 2023 · 0 comments
Open

Command sequence #57

jano42 opened this issue Oct 6, 2023 · 0 comments

Comments

@jano42
Copy link

jano42 commented Oct 6, 2023

Hi

Very good extension, and good work !

I'm using a sequence command, but in case of "failure" of a command , the sequence continues to run.

It could be nice if we could add a parameter for each command to indicate if we would like to continue the sequence or not.
"continueSequenceOnError" : boolean.

In my case, my first command is a cmake.build; which is not failing in case of build error. Then the second command is a deployment ; and it would be great if the deployment not being done in case of build error.

        "Build and deploy @ 0.11": {
            "sequence": [
                {
                    "command": "cmake.build",
                },
                {
                    "command": "commands.runInTerminal",
                    "args": {
                        "text": "bash scripts/publish.sh -i=192.168.0.11",
                        "reveal": true,
                        "reuse": "newest",
                        "waitForExit": true
                    }        
                }
            ],
            "icon": "cloud-upload",
            "iconColor": "charts.orange",
            "statusBar": { "text": "All->0.11", "backgroundColor": "warning", "color": "#FF0000" }
        },   

Thanks

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

1 participant