You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -160,16 +160,16 @@ belong to a diagnostic group named after the feature.
160
160
The names of diagnostic groups can be displayed alongside diagnostic messages
161
161
using `-print-diagnostic-groups` and used to associate messages with features.
162
162
163
-
### `swift migrate` command
163
+
### `swift package migrate` command
164
164
165
-
To enable seemless migration experience for Swift packages, I'd like to propose a new Swift Package Manager command - `swift migrate` to complement the Swift compiler-side changes.
165
+
To enable seemless migration experience for Swift packages, I'd like to propose a new Swift Package Manager command - `swift package migrate` to complement the Swift compiler-side changes.
166
166
167
167
The command would accept one or more features that have migration mode enabled and optionally a set of targets to migrate, if no targets are specified the whole package is going to be migrated to use new features.
168
168
169
169
#### Interface
170
170
171
171
```
172
-
USAGE: swift migrate [<options>] --to-feature <to-feature> ...
172
+
USAGE: swift package migrate [<options>] --to-feature <to-feature> ...
173
173
174
174
OPTIONS:
175
175
--targets <targets> The targets to migrate to specified set of features or a new language mode.
@@ -181,7 +181,7 @@ OPTIONS:
181
181
#### Use case
182
182
183
183
```
184
-
swift migrate --targets MyTarget,MyTest --to-feature ExistentialAny
184
+
swift package migrate --targets MyTarget,MyTest --to-feature ExistentialAny
185
185
```
186
186
187
187
This command would attempt to build `MyTarget` and `MyTest` targets with `ExistentialAny:migrate` feature flag, apply any fix-its associated with
@@ -211,7 +211,7 @@ enable the feature(s) if both of the previous actions are successful:
211
211
In the "whole package" mode, every target is going to be updated to include
212
212
new feature flag(s). This is supported by the same functionality as `swift package add-setting` command.
213
213
214
-
If it's, for some reason, impossible to add the setting the diagnostic message would suggest what to add and where i.e. `...; please add '.enableUpcomingFeature("ExistentialAny")' to `MyTarget` target manually`.
214
+
If it's, for some reason, impossible to add the setting the diagnostic message would suggest what to add and where i.e. `...; please add 'ExistentialAny' feature to `MyTarget` target manually`.
215
215
216
216
#### Impact on Interface
217
217
@@ -345,7 +345,7 @@ The next candidates in line per discussions are ***adopt***, ***audit***,
345
345
To illustrate, this mode could appropriately suggest switching from `any P`
346
346
to `some P` for `ExistentialAny`.
347
347
348
-
### `swift migrate` vs. `swift package migrate`
348
+
### `swift package migrate` vs. `swift migrate`
349
349
350
350
Rather than have migrate as a subcommand (ie. `swift package migrate`), another option is add another top level command, ie. `swift migrate`.
0 commit comments