1
0
mirror of https://github.com/docker/cli-docs-tool.git synced 2025-08-08 10:22:04 +03:00

Rename project

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2021-08-20 15:55:17 +02:00
parent f1ab11512f
commit 40b1fb6971
19 changed files with 42 additions and 87 deletions

View File

@@ -4,8 +4,8 @@ The following example will generate YAML and Markdown docs for
[Docker buildx](https://github.com/docker/buildx) CLI.
```console
git clone https://github.com/docker/docgen
cd docgen/example/
git clone https://github.com/docker/cli-docs-tool
cd cli-docs-tool/example/
go mod download
go run main.go
```

View File

@@ -1,16 +1,16 @@
module github.com/docker/docgen/example
module github.com/docker/cli-docs-tool/example
go 1.16
require (
github.com/docker/buildx v0.6.0
github.com/docker/cli v20.10.7+incompatible
github.com/docker/docgen v0.0.0
github.com/docker/cli-docs-tool v0.0.0
github.com/spf13/cobra v1.2.1
)
replace (
github.com/docker/cli => github.com/docker/cli v20.10.3-0.20210702143511-f782d1355eff+incompatible
github.com/docker/docker => github.com/docker/docker v20.10.3-0.20210609100121-ef4d47340142+incompatible
github.com/docker/docgen => ../
github.com/docker/cli-docs-tool => ../
)

View File

@@ -1,4 +1,4 @@
// Copyright 2021 docgen authors
// Copyright 2021 cli-docs-tool authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -20,8 +20,8 @@ import (
"path/filepath"
"github.com/docker/buildx/commands"
clidocstool "github.com/docker/cli-docs-tool"
"github.com/docker/cli/cli/command"
"github.com/docker/docgen"
"github.com/spf13/cobra"
)
@@ -42,7 +42,7 @@ func main() {
}
cmd.AddCommand(commands.NewRootCmd("buildx", true, dockerCLI))
docgen.DisableFlagsInUseLine(cmd)
clidocstool.DisableFlagsInUseLine(cmd)
cwd, _ := os.Getwd()
source := filepath.Join(cwd, sourcePath)
@@ -50,7 +50,7 @@ func main() {
if err = os.MkdirAll(source, 0755); err != nil {
log.Printf("ERROR: %+v", err)
}
if err = docgen.GenTree(cmd, source); err != nil {
if err = clidocstool.GenTree(cmd, source); err != nil {
log.Printf("ERROR: %+v", err)
}
}