[roll] Roll fuchsia [ffx] Add clear subcommand to ffx target discover

Add a `clear` subcommand to `ffx target discover` to allow removing
the discovery cache file. This avoids requiring the user to know the
location of the cache file.

The existing options are preserved as top-level switches, and the
subcommand is optional to maintain existing behavior when no
subcommand is provided.

A `tests` label is added to the plugin's `BUILD.gn` to facilitate
running unit tests. Existing tests were updated to handle the new
`subcommand` field in `DiscoverCommand`.

Original-Bug: 445982767
Test: fx test ffx_target_discover_test

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1600110
Original-Revision: 5a2aaec4972ea98740fc00d2175f1f6f17e5befb
GitOrigin-RevId: 8d057fbb7ef7f79333165c93dd56429b6e097d58
Change-Id: I549cb996a2a1c690bbaed3008486de371b094bda
1 file changed
tree: 7d3ff533ca14767788c1e4f9b2b7d3a1aa047ff0
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cobalt
  6. flower
  7. jiri.lock
  8. MILESTONE
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.