Skip to content

Conversation

@player-03
Copy link
Contributor

The <execute /> tag immediately runs a single command, and optionally saves its output and/or exit code. Sample usage:

<section unless="display">
	<execute command="script.bat" if="windows" exitCode="scriptExitCode" />
	<execute command="./script.sh" unless="windows" exitCode="scriptExitCode" />
	<error value="Custom script failed!" if="${scriptExitCode}!=0" />

	<execute command="dir" if="windows" output="directoryContents" />
	<execute command="ls" unless="windows" output="directoryContents" />
	<echo value="Directory contents: ${directoryContents}" />
</section>

Checking unless="display" is optional but recommended. Without it, the commands will run every time code completion is initialized.

Closes #1959

@player-03 player-03 linked an issue Oct 23, 2025 that may be closed by this pull request
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

Successfully merging this pull request may close these issues.

Project prebuild command is running too late

1 participant