Граф коммитов

15 Коммитов

Автор SHA1 Сообщение Дата
David Karlsson 7142e86e9e test: doc generation for root command
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-07-02 15:03:26 +02:00
CrazyMax 4ecc2f24df
test: "attach" and "buildx dial-stdio" cmds for testing
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-02-22 13:29:38 +01:00
CrazyMax be388bff2a
add man support
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2024-02-22 13:29:38 +01:00
CrazyMax 04f2e85bf0
test: remove hardcoded files to check
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2024-02-21 10:19:39 +01:00
George Margaritis e795250f34
Improve boolean flag documentation generation
Update the documentation generation logic to include values in Type and Default columns for boolean flags that have true as a default value.
This change addresses the need for users to differentiate between boolean flags that require explicit negation.

Signed-off-by: George Margaritis <gmargaritis@protonmail.com>
2024-02-12 16:55:22 +02:00
CrazyMax f0e625f63a
yaml: set hidden attribute for commands
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-06-27 14:17:49 +02:00
CrazyMax 5bd820d68e
markdown: replace new line in usage
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-12-26 06:31:33 +01:00
Sebastiaan van Stijn 15a6d25b68
use custom annotation for aliases
Cobra allows for aliases to be defined for a command, but only allows these
to be defined at the same level (for example, `docker image ls` as alias for
`docker image list`). Our CLI has some commands that are available both as a
top-level shorthand as well as `docker <object> <verb>` subcommands. For example,
`docker ps` is a shorthand for `docker container ps` / `docker container ls`.

This patch introduces a custom "aliases" annotation that can be used to print
all available aliases for a command. While this requires these aliases to be
defined manually, in practice the list of aliases rarely changes, so maintenance
should be minimal.

As a convention, we could consider the first command in this list to be the
canonical command, so that we can use this information to add redirects in
our documentation in future.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-06-29 02:00:12 +02:00
CrazyMax f76500199d
Merge pull request #20 from thaJeztah/replace_ioutil
replace uses of os/ioutil, and use test.TempDir() in tests
2022-02-23 21:24:02 +01:00
Sebastiaan van Stijn eb632668dd
replace uses of os/ioutil, and use test.TempDir() in tests
The os/ioutil package is now deprecated, so replace with os. While at it,
also replace its used for test.TempDir() in tests, which is easier to use
as it is automatically cleaned up.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-02-23 20:42:04 +01:00
CrazyMax b3ecfe17a1
annotation to override default value
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-02-17 13:45:16 +01:00
CrazyMax c712d9e559
annotation to specify code delimiter for flag usage
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-11-22 10:33:20 +01:00
CrazyMax 1ceaf72fde
fix desync file copying
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-11-04 16:11:15 +01:00
CrazyMax e9f8b8c6e3
fix persistent flags
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-11-04 11:37:01 +01:00
CrazyMax 67f339f2be
New opts for setting target and plugin capabilities
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-10-15 18:04:30 +02:00