Skip to content

Commit f22d4bc

Browse files
committed
Remove our own AsyncCommand and use Vapor's
1 parent faf3bcd commit f22d4bc

File tree

2 files changed

+9
-46
lines changed

2 files changed

+9
-46
lines changed

Sources/App/Commands/AsyncCommand.swift

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

Sources/App/configure.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -335,16 +335,16 @@ 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")
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")
346346
if Current.environment() == .development {
347-
app.commands.use(Swift6TriggerCommand(), as: "swift-6-trigger")
347+
app.asyncCommands.use(Swift6TriggerCommand(), as: "swift-6-trigger")
348348
}
349349

350350
// register routes

0 commit comments

Comments
 (0)