ShellExec
🐚 Gradle plugin with a simpler Exec task
Install / Use
/learn @phatblat/ShellExecREADME
ShellExec
A simpler extension point than Exec for ad-hoc Gradle tasks that run shell commands.
Features
- Specify entire
commandline in one string (instead ofList<CharSequence>). - Append/prepend to the current
PATH. - Execute a
command | pipeorconditional && command || chain. - Easy access to
stdoutandstderr.
:warning: Not compatible with Exec tasks yet (see #11), but the current API is very similar.
Example build.gradle.kts
import at.phatbl.shellexec.ShellExec
buildscript {
repositories.gradlePluginPortal()
dependencies.classpath("at.phatbl:shellexec:+")
}
val lolBoxFortune by registering(ShellExec::class) {
command = "fortune | boxes --design parchment --no-color | lolcat --force"
}
Note that the
boxesandlolcattools need to be installed for the abovelolBoxFortuneto work.
Task Output
> Task :lolBoxFortune
____________
/\ \
\_| Ship it. |
| |
| _______|_
\_/_________/
BUILD SUCCESSFUL in 2s
1 actionable task: 1 executed
License
This repo is licensed under the MIT License. See the LICENSE file for rights and limitations.
Related Skills
node-connect
330.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
81.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
330.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
81.3kCommit, push, and open a PR
