debian-forge-cli/cmd/image-builder
Michael Vogt 3c2e8dd9af cmd: add new describe-image command
This commit adds a new `describe-image` comamnd that contains
the details about the given image type. The output is yaml as
it is both nicely human readable and also machine readable.

Note that this version carries an invalid yaml header on
purpose to avoid people replying on the feature for scripts
before it is stable.

The output looks like this:
```yaml
$ ./image-builder describe-image rhel-9.1 tar
@WARNING - the output format is not stable yet and may change
distro: rhel-9.1
type: tar
arch: x86_64
os_vesion: "9.1"
bootmode: none
partition_type: ""
default_filename: root.tar.xz
packages:
  include:
    - policycoreutils
    - selinux-policy-targeted
    - selinux-policy-targeted
  exclude:
    - rng-tools
```

Thanks to Ondrej Budai for the idea and the example.
2025-01-31 10:57:50 +00:00
..
build.go main: add progress support via bibs code 2025-01-29 15:21:33 +00:00
describeimg.go cmd: add new describe-image command 2025-01-31 10:57:50 +00:00
describeimg_test.go cmd: add new describe-image command 2025-01-31 10:57:50 +00:00
distro.go image-builder: newline in error message 2025-01-20 06:55:24 +00:00
distro_test.go image-builder: newline in error message 2025-01-20 06:55:24 +00:00
export_test.go cmd: add new describe-image command 2025-01-31 10:57:50 +00:00
filters.go cmd: implement manifest command 2024-12-16 07:54:45 +00:00
filters_test.go main: help golang-ci to find the "main" symbol in the tests 2025-01-10 08:30:28 +00:00
list.go cmd: implement manifest command 2024-12-16 07:54:45 +00:00
main.go cmd: add new describe-image command 2025-01-31 10:57:50 +00:00
main_test.go cmd: add new describe-image command 2025-01-31 10:57:50 +00:00
manifest.go manifest: slightly clean up directory creation 2025-01-29 11:56:14 +00:00
repos.go repos: lookup <buildin>, /{etc,usr/share}/image-builder/repositories 2025-01-09 16:17:50 +00:00