debian-forge-cli/cmd/image-builder
Michael Vogt d00e76ced1 main: tweak handling of --output-name to avoid adding double extensions
This commit tweaks the handling of the `--output-name` option so
that is a name with the same extension as the image is passed that
is just silently ignored. Its a common issue that first time
users run:
```console
$ image-builder build --output-name foo.qcow2 qcow2
```
which currently leads to a foo.qcow2.qcow2. With this commit
the expected "foo.qcow2" will appear.
2025-03-27 14:03:11 +00:00
..
build.go ibcli: add new --output-name flag 2025-03-14 14:47:36 +00:00
describeimg.go describeimg: typo in describe output 2025-02-06 20:00:49 +01:00
describeimg_test.go main: add new --extra-repo flag 2025-02-12 12:57:21 +01: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 main: tweak handling of --output-name to avoid adding double extensions 2025-03-27 14:03:11 +00:00
filters.go main: add --force-repo flag 2025-02-13 11:31:06 +00:00
filters_test.go main: add new --extra-repo flag 2025-02-12 12:57:21 +01:00
list.go main: add new --extra-repo flag 2025-02-12 12:57:21 +01:00
main.go main: tweak handling of --output-name to avoid adding double extensions 2025-03-27 14:03:11 +00:00
main_test.go main: tweak handling of --output-name to avoid adding double extensions 2025-03-27 14:03:11 +00:00
manifest.go main: tweak handling of --output-name to avoid adding double extensions 2025-03-27 14:03:11 +00:00
repos.go main: add --force-repo flag 2025-02-13 11:31:06 +00:00
repos_test.go main: add --force-repo flag 2025-02-13 11:31:06 +00:00
upload.go main: simplify upload error handling 2025-02-18 09:49:16 +00:00
upload_test.go ibcli: add new --output-name flag 2025-03-14 14:47:36 +00:00