swiftlang / swift-package-manager

The Package Manager for the Swift Programming Language
Apache License 2.0
9.75k stars 1.35k forks source link

dump-symbol-graph should have a target selector #7932

Open cmcgee1024 opened 2 months ago

cmcgee1024 commented 2 months ago

Description

When running swift package dump-symbol-graph it will be really useful to limit it to a selection of targets. An idea is to use a typical '--target' option as is used in other SwiftPM subcommands.

Expected behavior

It is expected that there is a target selector on the dump-symbol-graph subcommand that dumps the symbol graph for that target alone.

Actual behavior

What happens today is that there is no documented way to select only a specific target when dumping the symbol graph.

Steps to reproduce

No response

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version && uname -a)

No response