From a584e7dca0ba991100c1aaf0efa3883f1ebf5fc3 Mon Sep 17 00:00:00 2001 From: Patrick Stoeckle Date: Wed, 4 Feb 2026 18:38:59 +0100 Subject: [PATCH] chore: fix typo in detach flag name and help text --- Sources/Container-Compose/Commands/ComposeUp.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/Container-Compose/Commands/ComposeUp.swift b/Sources/Container-Compose/Commands/ComposeUp.swift index 3446d81..1f1ee46 100644 --- a/Sources/Container-Compose/Commands/ComposeUp.swift +++ b/Sources/Container-Compose/Commands/ComposeUp.swift @@ -43,8 +43,8 @@ public struct ComposeUp: AsyncParsableCommand, @unchecked Sendable { @Flag( name: [.customShort("d"), .customLong("detach")], - help: "Detatches from container logs. Note: If you do NOT detatch, killing this process will NOT kill the container. To kill the container, run container-compose down") - var detatch: Bool = false + help: "Detaches from container logs. Note: If you do NOT detach, killing this process will NOT kill the container. To kill the container, run container-compose down") + var detach: Bool = false @Option(name: [.customShort("f"), .customLong("file")], help: "The path to your Docker Compose file") var composeFilename: String = "compose.yml" @@ -169,7 +169,7 @@ public struct ComposeUp: AsyncParsableCommand, @unchecked Sendable { try await configService(service, serviceName: serviceName, from: dockerCompose) } - if !detatch { + if !detach { await waitForever() } } @@ -363,7 +363,7 @@ public struct ComposeUp: AsyncParsableCommand, @unchecked Sendable { } // Add detach flag if specified on the CLI - if detatch { + if detach { runCommandArgs.append("-d") }