Skip to content

Commands: split SwiftPackageTool into multiple files #5883

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

Merged
merged 8 commits into from
Nov 15, 2022

Conversation

MaxDesiatov
Copy link
Contributor

Motivation:

SwiftPackageTool.swift is quite big, it would be great to split it into multiple files for easier maintenance.

Modifications:

Moved SwiftPackageTool subcommands into separate files of new PackageTools subdirectory.

Result:

It's easier to look up a specific subcommand and maintain separate files than one big file.

@MaxDesiatov
Copy link
Contributor Author

@swift-ci please smoke test

@tomerd
Copy link
Contributor

tomerd commented Nov 7, 2022

good idea 👍

@MaxDesiatov MaxDesiatov force-pushed the maxd/swift-package-tool branch from 1d10c37 to b822f7b Compare November 7, 2022 21:40
@MaxDesiatov
Copy link
Contributor Author

@swift-ci please smoke test

@MaxDesiatov MaxDesiatov self-assigned this Nov 7, 2022
This reverts commit cf19c64 and restores the `--build-path` option. It also switches the `bootstrap` script back to using it so that we have an easy check that the option is still present.
@MaxDesiatov
Copy link
Contributor Author

@swift-ci please smoke test

@MaxDesiatov MaxDesiatov force-pushed the maxd/swift-package-tool branch from 125cfbf to a1279bd Compare November 10, 2022 17:31
@MaxDesiatov MaxDesiatov changed the base branch from main to maxd/cc-sdks-option November 10, 2022 17:32
Base automatically changed from maxd/cc-sdks-option to main November 11, 2022 10:45
…xd/swift-package-tool

# Conflicts:
#	Sources/Commands/CMakeLists.txt
#	Sources/Commands/SwiftPackageTool.swift
#	Sources/CoreCommands/SwiftTool.swift
@MaxDesiatov
Copy link
Contributor Author

@swift-ci please smoke test

@MaxDesiatov MaxDesiatov merged commit 567979c into main Nov 15, 2022
@MaxDesiatov MaxDesiatov deleted the maxd/swift-package-tool branch November 15, 2022 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants