Skip to content

Commit

Permalink
Add option to quiet fakemachine
Browse files Browse the repository at this point in the history
  • Loading branch information
bergmx authored and Magnutic committed Jan 29, 2024
1 parent d4541d8 commit b366063
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Application Options:
--print-recipe Print final recipe
--dry-run Compose final recipe to build but without any real work started
--disable-fakemachine Do not use fakemachine.
--quiet-fakemachine Stop fakemachine from printing extra information. Only stderr/stdout of the command to be run will be printed.


## Description
Expand Down
3 changes: 3 additions & 0 deletions cmd/debos/debos.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func main() {
PrintRecipe bool `long:"print-recipe" description:"Print final recipe"`
DryRun bool `long:"dry-run" description:"Compose final recipe to build but without any real work started"`
DisableFakeMachine bool `long:"disable-fakemachine" description:"Do not use fakemachine."`
QuietFakeMachine bool `long:"quiet-fakemachine" description:"Stop fakemachine from printing extra information. Only stderr/stdout of the command to be run will be printed."`
}

// These are the environment variables that will be detected on the
Expand Down Expand Up @@ -316,6 +317,8 @@ func main() {
}
}

m.SetQuiet(options.QuietFakeMachine)

exitcode, err = m.RunInMachineWithArgs(args)
if err != nil {
fmt.Println(err)
Expand Down
3 changes: 2 additions & 1 deletion doc/man/debos.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'\" t
.\" Automatically generated by Pandoc 3.1.3
.\" Automatically generated by Pandoc 2.17.1.1
.\"
.\" Define V font for inline verbatim, using C font in formats
.\" that render this, and otherwise B font.
Expand Down Expand Up @@ -47,6 +47,7 @@ Application Options:
--print-recipe Print final recipe
--dry-run Compose final recipe to build but without any real work started
--disable-fakemachine Do not use fakemachine.
--quiet-fakemachine Stop fakemachine from printing extra information. Only stderr/stdout of the command to be run will be printed.
\f[R]
.fi
.SH DESCRIPTION
Expand Down

0 comments on commit b366063

Please sign in to comment.