mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 17:27:49 +08:00
Merge pull request #1918 from crazy-max/docs-hidden-fix
This commit is contained in:
commit
b84e0e11b4
@ -10,8 +10,7 @@ Extended build capabilities with BuildKit
|
|||||||
### Subcommands
|
### Subcommands
|
||||||
|
|
||||||
| Name | Description |
|
| Name | Description |
|
||||||
|:-----------------------------------------------|:-------------------------------------------|
|
|:---------------------------------------|:---------------------------------------|
|
||||||
| [`_INTERNAL_SERVE`](buildx__INTERNAL_SERVE.md) | |
|
|
||||||
| [`bake`](buildx_bake.md) | Build from a file |
|
| [`bake`](buildx_bake.md) | Build from a file |
|
||||||
| [`build`](buildx_build.md) | Start a build |
|
| [`build`](buildx_build.md) | Start a build |
|
||||||
| [`create`](buildx_create.md) | Create a new builder instance |
|
| [`create`](buildx_create.md) | Create a new builder instance |
|
||||||
@ -19,12 +18,10 @@ Extended build capabilities with BuildKit
|
|||||||
| [`du`](buildx_du.md) | Disk usage |
|
| [`du`](buildx_du.md) | Disk usage |
|
||||||
| [`imagetools`](buildx_imagetools.md) | Commands to work on images in registry |
|
| [`imagetools`](buildx_imagetools.md) | Commands to work on images in registry |
|
||||||
| [`inspect`](buildx_inspect.md) | Inspect current builder instance |
|
| [`inspect`](buildx_inspect.md) | Inspect current builder instance |
|
||||||
| [`install`](buildx_install.md) | Install buildx as a 'docker builder' alias |
|
|
||||||
| [`ls`](buildx_ls.md) | List builder instances |
|
| [`ls`](buildx_ls.md) | List builder instances |
|
||||||
| [`prune`](buildx_prune.md) | Remove build cache |
|
| [`prune`](buildx_prune.md) | Remove build cache |
|
||||||
| [`rm`](buildx_rm.md) | Remove a builder instance |
|
| [`rm`](buildx_rm.md) | Remove a builder instance |
|
||||||
| [`stop`](buildx_stop.md) | Stop builder instance |
|
| [`stop`](buildx_stop.md) | Stop builder instance |
|
||||||
| [`uninstall`](buildx_uninstall.md) | Uninstall the 'docker builder' alias |
|
|
||||||
| [`use`](buildx_use.md) | Set the current builder instance |
|
| [`use`](buildx_use.md) | Set the current builder instance |
|
||||||
| [`version`](buildx_version.md) | Show buildx version information |
|
| [`version`](buildx_version.md) | Show buildx version information |
|
||||||
|
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
# buildx install
|
|
||||||
|
|
||||||
```
|
|
||||||
docker buildx install
|
|
||||||
```
|
|
||||||
|
|
||||||
<!---MARKER_GEN_START-->
|
|
||||||
Install buildx as a 'docker builder' alias
|
|
||||||
|
|
||||||
|
|
||||||
<!---MARKER_GEN_END-->
|
|
@ -1,11 +0,0 @@
|
|||||||
# buildx uninstall
|
|
||||||
|
|
||||||
```
|
|
||||||
docker buildx uninstall
|
|
||||||
```
|
|
||||||
|
|
||||||
<!---MARKER_GEN_START-->
|
|
||||||
Uninstall the 'docker builder' alias
|
|
||||||
|
|
||||||
|
|
||||||
<!---MARKER_GEN_END-->
|
|
2
go.mod
2
go.mod
@ -12,7 +12,7 @@ require (
|
|||||||
github.com/containerd/typeurl/v2 v2.1.1
|
github.com/containerd/typeurl/v2 v2.1.1
|
||||||
github.com/creack/pty v1.1.18
|
github.com/creack/pty v1.1.18
|
||||||
github.com/docker/cli v24.0.2+incompatible
|
github.com/docker/cli v24.0.2+incompatible
|
||||||
github.com/docker/cli-docs-tool v0.5.1
|
github.com/docker/cli-docs-tool v0.6.0
|
||||||
github.com/docker/distribution v2.8.2+incompatible
|
github.com/docker/distribution v2.8.2+incompatible
|
||||||
github.com/docker/docker v24.0.2+incompatible
|
github.com/docker/docker v24.0.2+incompatible
|
||||||
github.com/docker/go-units v0.5.0
|
github.com/docker/go-units v0.5.0
|
||||||
|
4
go.sum
4
go.sum
@ -152,8 +152,8 @@ github.com/distribution/distribution/v3 v3.0.0-20230214150026-36d8c594d7aa h1:L9
|
|||||||
github.com/distribution/distribution/v3 v3.0.0-20230214150026-36d8c594d7aa/go.mod h1:WHNsWjnIn2V1LYOrME7e8KxSeKunYHsxEm4am0BUtcI=
|
github.com/distribution/distribution/v3 v3.0.0-20230214150026-36d8c594d7aa/go.mod h1:WHNsWjnIn2V1LYOrME7e8KxSeKunYHsxEm4am0BUtcI=
|
||||||
github.com/docker/cli v24.0.2+incompatible h1:QdqR7znue1mtkXIJ+ruQMGQhpw2JzMJLRXp6zpzF6tM=
|
github.com/docker/cli v24.0.2+incompatible h1:QdqR7znue1mtkXIJ+ruQMGQhpw2JzMJLRXp6zpzF6tM=
|
||||||
github.com/docker/cli v24.0.2+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
|
github.com/docker/cli v24.0.2+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
|
||||||
github.com/docker/cli-docs-tool v0.5.1 h1:jIk/cCZurZERhALPVKhqlNxTQGxn2kcI+56gE57PQXg=
|
github.com/docker/cli-docs-tool v0.6.0 h1:Z9x10SaZgFaB6jHgz3OWooynhSa40CsWkpe5hEnG/qA=
|
||||||
github.com/docker/cli-docs-tool v0.5.1/go.mod h1:zMjqTFCU361PRh8apiXzeAZ1Q/xupbIwTusYpzCXS/o=
|
github.com/docker/cli-docs-tool v0.6.0/go.mod h1:zMjqTFCU361PRh8apiXzeAZ1Q/xupbIwTusYpzCXS/o=
|
||||||
github.com/docker/distribution v2.8.2+incompatible h1:T3de5rq0dB1j30rp0sA2rER+m322EBzniBPB6ZIzuh8=
|
github.com/docker/distribution v2.8.2+incompatible h1:T3de5rq0dB1j30rp0sA2rER+m322EBzniBPB6ZIzuh8=
|
||||||
github.com/docker/distribution v2.8.2+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
|
github.com/docker/distribution v2.8.2+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
|
||||||
github.com/docker/docker v24.0.2+incompatible h1:eATx+oLz9WdNVkQrr0qjQ8HvRJ4bOOxfzEo8R+dA3cg=
|
github.com/docker/docker v24.0.2+incompatible h1:eATx+oLz9WdNVkQrr0qjQ8HvRJ4bOOxfzEo8R+dA3cg=
|
||||||
|
9
vendor/github.com/docker/cli-docs-tool/clidocstool_md.go
generated
vendored
9
vendor/github.com/docker/cli-docs-tool/clidocstool_md.go
generated
vendored
@ -53,6 +53,12 @@ func (c *Client) GenMarkdownTree(cmd *cobra.Command) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Skip hidden command
|
||||||
|
if cmd.Hidden {
|
||||||
|
log.Printf("INFO: Skipping Markdown for %q (hidden command)", cmd.CommandPath())
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
log.Printf("INFO: Generating Markdown for %q", cmd.CommandPath())
|
log.Printf("INFO: Generating Markdown for %q", cmd.CommandPath())
|
||||||
mdFile := mdFilename(cmd)
|
mdFile := mdFilename(cmd)
|
||||||
sourcePath := filepath.Join(c.source, mdFile)
|
sourcePath := filepath.Join(c.source, mdFile)
|
||||||
@ -208,6 +214,9 @@ func mdCmdOutput(cmd *cobra.Command, old string) (string, error) {
|
|||||||
b.WriteString("### Subcommands\n\n")
|
b.WriteString("### Subcommands\n\n")
|
||||||
table := newMdTable("Name", "Description")
|
table := newMdTable("Name", "Description")
|
||||||
for _, c := range cmd.Commands() {
|
for _, c := range cmd.Commands() {
|
||||||
|
if c.Hidden {
|
||||||
|
continue
|
||||||
|
}
|
||||||
table.AddRow(fmt.Sprintf("[`%s`](%s)", c.Name(), mdFilename(c)), c.Short)
|
table.AddRow(fmt.Sprintf("[`%s`](%s)", c.Name(), mdFilename(c)), c.Short)
|
||||||
}
|
}
|
||||||
b.WriteString(table.String() + "\n")
|
b.WriteString(table.String() + "\n")
|
||||||
|
2
vendor/github.com/docker/cli-docs-tool/clidocstool_yaml.go
generated
vendored
2
vendor/github.com/docker/cli-docs-tool/clidocstool_yaml.go
generated
vendored
@ -62,6 +62,7 @@ type cmdDoc struct {
|
|||||||
InheritedOptions []cmdOption `yaml:"inherited_options,omitempty"`
|
InheritedOptions []cmdOption `yaml:"inherited_options,omitempty"`
|
||||||
Example string `yaml:"examples,omitempty"`
|
Example string `yaml:"examples,omitempty"`
|
||||||
Deprecated bool
|
Deprecated bool
|
||||||
|
Hidden bool
|
||||||
MinAPIVersion string `yaml:"min_api_version,omitempty"`
|
MinAPIVersion string `yaml:"min_api_version,omitempty"`
|
||||||
Experimental bool
|
Experimental bool
|
||||||
ExperimentalCLI bool
|
ExperimentalCLI bool
|
||||||
@ -155,6 +156,7 @@ func (c *Client) genYamlCustom(cmd *cobra.Command, w io.Writer) error {
|
|||||||
Long: forceMultiLine(cmd.Long, longMaxWidth),
|
Long: forceMultiLine(cmd.Long, longMaxWidth),
|
||||||
Example: cmd.Example,
|
Example: cmd.Example,
|
||||||
Deprecated: len(cmd.Deprecated) > 0,
|
Deprecated: len(cmd.Deprecated) > 0,
|
||||||
|
Hidden: cmd.Hidden,
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(cliDoc.Long) == 0 {
|
if len(cliDoc.Long) == 0 {
|
||||||
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@ -234,7 +234,7 @@ github.com/docker/cli/cli/streams
|
|||||||
github.com/docker/cli/cli/trust
|
github.com/docker/cli/cli/trust
|
||||||
github.com/docker/cli/cli/version
|
github.com/docker/cli/cli/version
|
||||||
github.com/docker/cli/opts
|
github.com/docker/cli/opts
|
||||||
# github.com/docker/cli-docs-tool v0.5.1
|
# github.com/docker/cli-docs-tool v0.6.0
|
||||||
## explicit; go 1.18
|
## explicit; go 1.18
|
||||||
github.com/docker/cli-docs-tool
|
github.com/docker/cli-docs-tool
|
||||||
github.com/docker/cli-docs-tool/annotation
|
github.com/docker/cli-docs-tool/annotation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user