New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvements to --dump-help
#335
Conversation
@swift-ci please test |
@natecook1000 what are your thoughts on the serialization format changes? I'm also wondering if the format should be evolvable/versioned or expect all clients to stay in lock step with the format? I defaulted towards the former by introducing a |
@swift-ci please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this, @rauhul! I think the changes make sense, esp along with the serialization version, since I know there will be additional features coming that can't be captured currently (bc they don't exist). Added a variety of notes, this largely looks ready to go.
FYI I think I'm going to limit access to the API and change the flag name to --experimental-dump-help
in the first release of this.
@swift-ci please test |
@swift-ci Please test |
@natecook1000 It looks like the linux build is failing due to the use of |
Ugh — looking at whether we can use a higher version on CI to support this. |
Would it be possible to only bump the linux version? Since swift is not ABI stable on linux, I think users have no good reason to use old versions on linux. The macOS failure will be resolved by the other issue 340 PR |
- Removes `HelpInfo` in favor of a recursively defined `CommandInfo` which contains more raw metadata about the source command. Additionally, introduces a top level `ToolInfo` type with a serialization version to aid future tooling. - Updates tests to match the new serialized format. - Renames `DumpHelpInfoGenerator` to `DumpHelpGenerator` to align the type with the `--dump-help` flag.
- Renames `optional` to `nonEmpty`. - Adds `allValues` field to `ArgumentInfoV0`. - Adds test covering Issue #340 failure.
@swift-ci please test |
1 similar comment
@swift-ci please test |
@swift-ci please test |
@compnerd how do you build with |
You should be able to install a windows snapshot toolchain and then just use |
@swift-ci Please test |
This seems to have regressed the CMake build :-( |
The changes in apple#335 introduced a new library but failed to actually build the library and update the dependency structure. Update the build system to build and install the new target.
The changes in #335 introduced a new library but failed to actually build the library and update the dependency structure. Update the build system to build and install the new target.
Removes
HelpInfo
in favor of a recursively definedCommandInfo
which contains more raw metadata about the source command.
Additionally, introduces a top level
ToolInfo
type with aserialization version to aid future tooling.
Updates tests to match the new serialized format.
Renames
DumpHelpInfoGenerator
toDumpHelpGenerator
to align thetype with the
--dump-help
flag.