cmd: implement manifest command
This commit implements the `manifest` command for `image-builder`.
It will generate an osbuild manifest based on the given inputs,
e.g.:
```
$ ./image-builder manifest centos-9 qcow2
{"version":"2","pipelines":[{"name":"build","runner":",...
```
Note that there is an integration test but because of the depsolve
it will be slow. It will be skipped when doing `go test -short`.
This commit is contained in:
parent
ea61ef593f
commit
830528fa15
5 changed files with 91 additions and 16 deletions
|
|
@ -10,6 +10,7 @@ import (
|
|||
|
||||
var (
|
||||
GetOneImage = getOneImage
|
||||
Run = run
|
||||
)
|
||||
|
||||
func MockOsArgs(new []string) (restore func()) {
|
||||
|
|
@ -48,7 +49,3 @@ func MockNewRepoRegistry(f func() (*reporegistry.RepoRegistry, error)) (restore
|
|||
newRepoRegistry = saved
|
||||
}
|
||||
}
|
||||
|
||||
var (
|
||||
Run = run
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue