mirror of
https://github.com/docker/compose.git
synced 2026-02-09 01:59:22 +08:00
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 <adam@pkqk.net>
This commit is contained in:
committed by
Nicolas De loof
parent
f17d0dfc61
commit
63ae7eb0fa
22
docs/sdk.md
22
docs/sdk.md
@@ -28,8 +28,8 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/docker/cli/cli/command"
|
"github.com/docker/cli/cli/command"
|
||||||
"github.com/docker/cli/cli/flags"
|
"github.com/docker/cli/cli/flags"
|
||||||
"github.com/docker/compose/v5/pkg/api"
|
"github.com/docker/compose/v5/pkg/api"
|
||||||
"github.com/docker/compose/v5/pkg/compose"
|
"github.com/docker/compose/v5/pkg/compose"
|
||||||
)
|
)
|
||||||
@@ -37,15 +37,15 @@ import (
|
|||||||
func main() {
|
func main() {
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
dockerCLI, err := command.NewDockerCli()
|
dockerCLI, err := command.NewDockerCli()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Failed to create docker CLI: %v", err)
|
log.Fatalf("Failed to create docker CLI: %v", err)
|
||||||
}
|
}
|
||||||
err = dockerCLI.Initialize(&flags.ClientOptions{})
|
err = dockerCLI.Initialize(&flags.ClientOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Failed to initialize docker CLI: %v", err)
|
log.Fatalf("Failed to initialize docker CLI: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create a new Compose service instance
|
// Create a new Compose service instance
|
||||||
service, err := compose.NewComposeService(dockerCLI)
|
service, err := compose.NewComposeService(dockerCLI)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user