Sebastiaan van Stijn
6f4440bf8b
markdown: format generated tables to have equal-width columns
...
This makes the tables more readable when reading the source code.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-12-29 01:05:02 +01:00
Sebastiaan van Stijn
ca8c2e2c28
markdown: use stringbuilder.WriteString()
...
This makes my IDE happier, as there's less unhandled errors.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-12-29 00:59:18 +01:00
Sebastiaan van Stijn
64ee5498be
Merge pull request #33 from crazy-max/usage-newline
...
markdown: replace new line in usage
2022-12-27 10:57:59 +01:00
CrazyMax
6de4bc9711
readme: fix badge
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-12-26 06:31:34 +01: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
77abede221
Merge pull request #32 from thaJeztah/custom_aliases
...
use custom annotation for aliases
2022-07-04 18:20:28 +02:00
Sebastiaan van Stijn
d27dd0c6aa
Merge pull request #30 from crazy-max/update-deps
...
update dependencies
2022-06-29 10:46:52 +02:00
CrazyMax
fba4d46924
example: update to buildx 0.8.2
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-06-29 02:05:00 +02:00
CrazyMax
b7481dce47
Bump github.com/spf13/cobra from 1.2.1 to 1.4.0
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-06-29 02:05:00 +02:00
CrazyMax
413e8d1595
Bump github.com/stretchr/testify from 1.7.0 to 1.7.2
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-06-29 02:04:59 +02:00
CrazyMax
f9c3bf3699
Bump gopkg.in/yaml.v2 to gopkg.in/yaml.v3 3.0.1
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-06-29 02:04:59 +02: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
Sebastiaan van Stijn
5add5227e6
Merge pull request #31 from thaJeztah/full_alias
...
use full command as aliases
2022-06-29 01:59:41 +02:00
Sebastiaan van Stijn
23f22d3ca8
use full command as aliases
...
The default output for Cobra aliases only shows the subcommand as alias, which
is not very intuitive. This patch changes the output to use the full command
as it would be called by the user.
Before this patch:
aliases: build, b
After this patch:
aliases: docker buildx build, docker buildx b
Note that there's still some improvements to be made; due to how aliases must be
set-up in Cobra, aliases at different "levels" are still not shown. So for example,
`docker build --help` will not show `docker buildx build` as alias, and vice-versa.
This will require additional changes, and can possibly be resolved using custom
metadata/annotations.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-06-28 12:07:52 +02:00
Sebastiaan van Stijn
b4dab44b58
Merge pull request #29 from crazy-max/go-1.18
...
update to Go 1.18
2022-06-16 14:19:39 +02:00
Sebastiaan van Stijn
573929fa38
Merge pull request #28 from crazy-max/rm-godev
...
ci: remove godev workflow
2022-06-16 14:17:29 +02:00
CrazyMax
281354c62d
dockerfile: upgrade golangci-lint to 1.45
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-06-13 20:59:12 +02:00
CrazyMax
a23448b33e
update to go 1.18
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-06-13 20:58:28 +02:00
CrazyMax
9da6f52afc
dockerfile: merge dockerfiles
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-06-13 20:52:21 +02:00
CrazyMax
44a6b54892
ci: update test workflow events
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-06-13 20:39:47 +02:00
CrazyMax
deaf2692d6
ci: remove godev workflow
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-06-13 20:36:01 +02:00
CrazyMax
7524119340
Merge pull request #27 from docker/dependabot/github_actions/docker/bake-action-2
...
Bump docker/bake-action from 1 to 2
2022-06-13 20:19:04 +02:00
CrazyMax
b793813778
Merge pull request #26 from docker/dependabot/github_actions/actions/setup-go-3
...
Bump actions/setup-go from 2 to 3
2022-06-13 20:18:49 +02:00
dependabot[bot]
3400fab9c9
Bump docker/bake-action from 1 to 2
...
Bumps [docker/bake-action](https://github.com/docker/bake-action ) from 1 to 2.
- [Release notes](https://github.com/docker/bake-action/releases )
- [Commits](https://github.com/docker/bake-action/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: docker/bake-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-06 09:19:46 +00:00
dependabot[bot]
206b976451
Bump actions/setup-go from 2 to 3
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 2 to 3.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-11 09:19:19 +00:00
CrazyMax
51b3714e65
Merge pull request #25 from docker/dependabot/github_actions/codecov/codecov-action-3
...
Bump codecov/codecov-action from 2 to 3
2022-04-06 11:27:02 +02:00
dependabot[bot]
170d72712d
Bump codecov/codecov-action from 2 to 3
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 2 to 3.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-06 09:20:20 +00:00
Sebastiaan van Stijn
b748567c95
Merge pull request #24 from crazy-max/rm-gomod-dependanbot
...
ci: remove dependabot for gomod
2022-03-09 17:10:40 +01:00
CrazyMax
128f2024d2
ci: remove dependabot for gomod
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-03-09 16:08:52 +01:00
CrazyMax
04e7bb9914
Merge pull request #21 from docker/dependabot/github_actions/actions/checkout-3
...
Bump actions/checkout from 2 to 3
2022-03-09 14:34:50 +01:00
dependabot[bot]
41a4bb3a86
Bump actions/checkout from 2 to 3
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-02 09:30:02 +00: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
1b0effd7d5
Merge pull request #19 from crazy-max/flag-type
...
display flag type and default value in a dedicated columns
2022-02-23 20:52:30 +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
8ced39165e
display flag type and default value in dedicated columns
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-02-10 14:48:43 +01:00
Sebastiaan van Stijn
77df2afa21
Merge pull request #18 from crazy-max/fix-yaml-longdesc
...
yaml: root command should also be removed for non-plugin (cli)
2022-01-19 14:01:07 +01:00
CrazyMax
f468d10fef
yaml: root command should also be removed for cli (non-plugin)
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-01-18 16:53:34 +01:00
Sebastiaan van Stijn
6f00061a33
Merge pull request #16 from crazy-max/custom-usage
...
annotation to specify code delimiter for flag usage
2021-11-22 10:35:34 +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
Sebastiaan van Stijn
383716cbae
Merge pull request #15 from crazy-max/fix-yaml
...
yaml: add hidden field for cmd option
2021-11-17 16:33:40 +01:00
CrazyMax
8b8bbd4484
yaml: add hidden field for cmd option
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-11-17 14:48:09 +01:00
Sebastiaan van Stijn
7e82c467fc
Merge pull request #12 from crazy-max/fix-copyfile
...
fix desync file copying
2021-11-04 17:08:49 +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
Sebastiaan van Stijn
cc5eaf0d25
Merge pull request #10 from crazy-max/fix-persistent-flags
...
fix persistent flags
2021-11-04 15:16:08 +01:00
CrazyMax
669397c81c
always disable the addition of [flags] to the usage
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-11-04 13:39:10 +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
bb36108b8c
Merge pull request #11 from thaJeztah/native_errors
...
remove github.com/pkg/errors dependency
2021-11-04 10:28:33 +01:00
Sebastiaan van Stijn
7cf6fd0546
remove github.com/pkg/errors dependency
...
While pkg/errors ia a great utility, I don't think it's adding enough value
in this specific project to make it worth being an extra dependency.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-11-04 10:00:03 +01:00
Sebastiaan van Stijn
363267b9f4
Merge pull request #9 from crazy-max/target
...
New opts for setting target dir and plugin capabilities
2021-11-04 09:53:19 +01:00