Skip to content

Commit fd972bf

Browse files
Merge pull request #3331 from SwiftPackageIndex/cleanup-commands
Cleanup commands
2 parents faf3bcd + a682aa7 commit fd972bf

File tree

3 files changed

+8
-254
lines changed

3 files changed

+8
-254
lines changed

Sources/App/Commands/AsyncCommand.swift

Lines changed: 0 additions & 37 deletions
This file was deleted.

Sources/App/Commands/Swift6Trigger.swift

Lines changed: 0 additions & 206 deletions
This file was deleted.

Sources/App/configure.swift

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -335,17 +335,14 @@ public func configure(_ app: Application) async throws -> String {
335335
app.migrations.add(UpdateBuildAddBuildDateCommitHash())
336336
}
337337

338-
app.commands.use(Analyze.Command(), as: "analyze")
339-
app.commands.use(CreateRestfileCommand(), as: "create-restfile")
340-
app.commands.use(DeleteBuildsCommand(), as: "delete-builds")
341-
app.commands.use(IngestCommand(), as: "ingest")
342-
app.commands.use(ReconcileCommand(), as: "reconcile")
343-
app.commands.use(TriggerBuildsCommand(), as: "trigger-builds")
344-
app.commands.use(ReAnalyzeVersions.Command(), as: "re-analyze-versions")
345-
app.commands.use(Alerting.Command(), as: "alerting")
346-
if Current.environment() == .development {
347-
app.commands.use(Swift6TriggerCommand(), as: "swift-6-trigger")
348-
}
338+
app.asyncCommands.use(Analyze.Command(), as: "analyze")
339+
app.asyncCommands.use(CreateRestfileCommand(), as: "create-restfile")
340+
app.asyncCommands.use(DeleteBuildsCommand(), as: "delete-builds")
341+
app.asyncCommands.use(IngestCommand(), as: "ingest")
342+
app.asyncCommands.use(ReconcileCommand(), as: "reconcile")
343+
app.asyncCommands.use(TriggerBuildsCommand(), as: "trigger-builds")
344+
app.asyncCommands.use(ReAnalyzeVersions.Command(), as: "re-analyze-versions")
345+
app.asyncCommands.use(Alerting.Command(), as: "alerting")
349346

350347
// register routes
351348
try routes(app)

0 commit comments

Comments
 (0)