Creates a tool which can be used with ffx driver run-tool.
This rule will create a tool which can be used in the development of a driver.
The rule takes a binary which is what will be executed when it runs. When the
tool is added to a package it can be executed via bazel run my_pkg.my_tool
.
This will create a package server, publish the package and call ffx driver run-tool
fuchsia_cc_binary(
name = "bin",
srcs = [ "main.cc" ],
)
fuchsia_driver_tool(
name = "my_tool",
binary = ":bin",
)
fuchsia_package(
name = "pkg",
tools = [ ":my_tool" ]
)
$ bazel run //pkg.my_tool -- --arg1 foo --arg2 bar
## **ATTRIBUTES**
| Name | Description | Type | Mandatory | Default |
| :------------- | :------------- | :------------- | :------------- | :------------- |
| name | A unique name for this target. | <a href="https://bazel.build/concepts/labels#target-names">Name</a> | required | - |
| binary | The tool's fuchsia_cc_binary() target. | <a href="https://bazel.build/rules/lib/toplevel/attr#label">Label</a> | required | - |
<!-- The footer below is automatically added to this file. Do not modify anything below this line. -->