Package dev.gmitch215.bytebox.gradle
Class Runner
java.lang.Object
dev.gmitch215.bytebox.gradle.Runner
Finds something that can run a Node command-line tool.
Resolved once, in the order a developer would try by hand: the tool itself if it is already
installed, then bunx, then deno, then npx. An installed binary comes first
because it is the fastest and because a project that installed one meant to use it.
- Since:
- 1.0.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionThe full command line for a Wrangler invocation.describe()Returns a description for the build log.Returns the resolved executable, so a build can log which one it found.static RunnerResolves a runner for the Wrangler CLI.static RunnerResolves a runner for a named tool, or explains what to install.
-
Field Details
-
WRANGLER
The Wrangler CLI, which is what most of these tasks run.- See Also:
-
BINDGEN
The binding generator, which ships with the bytebox npm package.- See Also:
-
-
Method Details
-
resolve
Resolves a runner for the Wrangler CLI.- Parameters:
override- a pinned runner name, ornullto search- Returns:
- the runner
-
resolve
Resolves a runner for a named tool, or explains what to install.- Parameters:
override- a pinned runner name, ornullto searchtool- the npm command to run- Returns:
- the runner
-
executable
Returns the resolved executable, so a build can log which one it found.- Returns:
- the resolved executable, so a build can log which one it found
-
describe
Returns a description for the build log.- Returns:
- a description for the build log
-
command
The full command line for a Wrangler invocation.- Parameters:
args- the Wrangler arguments- Returns:
- the command
-