From 63ae7eb0fabd20484936381a29d4f3c98227097e Mon Sep 17 00:00:00 2001 From: Adam Sven Johnson Date: Tue, 13 Jan 2026 10:39:07 +1300 Subject: [PATCH] Replace tabbed indentation in sdk.md Tabs and spaces were mixed in the example code which didn't indent cleanly in the github preview. Signed-off-by: Adam Sven Johnson --- docs/sdk.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/sdk.md b/docs/sdk.md index 6e5a9b12e..3a03c7fdc 100644 --- a/docs/sdk.md +++ b/docs/sdk.md @@ -28,8 +28,8 @@ import ( "context" "log" - "github.com/docker/cli/cli/command" - "github.com/docker/cli/cli/flags" + "github.com/docker/cli/cli/command" + "github.com/docker/cli/cli/flags" "github.com/docker/compose/v5/pkg/api" "github.com/docker/compose/v5/pkg/compose" ) @@ -37,15 +37,15 @@ import ( func main() { ctx := context.Background() - dockerCLI, err := command.NewDockerCli() - if err != nil { - log.Fatalf("Failed to create docker CLI: %v", err) - } - err = dockerCLI.Initialize(&flags.ClientOptions{}) - if err != nil { - log.Fatalf("Failed to initialize docker CLI: %v", err) - } - + dockerCLI, err := command.NewDockerCli() + if err != nil { + log.Fatalf("Failed to create docker CLI: %v", err) + } + err = dockerCLI.Initialize(&flags.ClientOptions{}) + if err != nil { + log.Fatalf("Failed to initialize docker CLI: %v", err) + } + // Create a new Compose service instance service, err := compose.NewComposeService(dockerCLI) if err != nil {