cmd: --blueprint

Moves the blueprint argument to a named argument; freeing up space to
later be able to pass in multiple image types. This also slightly
simplifies the case where we're building without a blueprint available.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
This commit is contained in:
Simon de Vlieger 2025-01-16 09:45:31 +01:00 committed by Michael Vogt
parent ffb22eb837
commit c1c60a3c77
2 changed files with 11 additions and 6 deletions

View file

@ -3,6 +3,7 @@ package main_test
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
"os"
@ -166,7 +167,7 @@ func TestManifestIntegrationSmoke(t *testing.T) {
"qcow2",
"--arch=x86_64",
"--distro=centos-9",
makeTestBlueprint(t, testBlueprint),
fmt.Sprintf("--blueprint=%s", makeTestBlueprint(t, testBlueprint)),
})
defer restore()
@ -318,7 +319,7 @@ func TestBuildIntegrationHappy(t *testing.T) {
restore = main.MockOsArgs([]string{
"build",
"qcow2",
makeTestBlueprint(t, testBlueprint),
fmt.Sprintf("--blueprint=%s", makeTestBlueprint(t, testBlueprint)),
"--distro", "centos-9",
"--store", tmpdir,
})