Bazel Operations: Difference between revisions
Jump to navigation
Jump to search
(→run) |
(→run) |
||
Line 14: | Line 14: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==<tt>run</tt>== | ==<tt>run</tt>== | ||
Runs the specified [[Bazel_Concepts#Target|target]]. | |||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
bazel run --script_path=/Users/ovidiu/bin/something //a/something | bazel run --script_path=/Users/ovidiu/bin/something //a/something |
Revision as of 00:10, 31 October 2023
External
- Command Line Reference https://bazel.build/reference/command-line-reference
Internal
Commands
build
clean
fetch
info
bazel info
run
Runs the specified target.
bazel run --script_path=/Users/ovidiu/bin/something //a/something
Runs the specified target.
--script-path
Write a shell script that invokes the target. In this way, the target is not run from bazel - the bazel lock is released and the executable is connected to the terminal's stdin.