Skip to content

Commit b849840

Browse files
authored
Merge pull request #3 from rockwotj/quiet
Add -quiet flag to suppress rpk output
2 parents 3d53f71 + 6e6b010 commit b849840

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

main.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,6 +1426,7 @@ func main() {
14261426
cpuprofile := flag.String("cpuprofile", "", "cpuprofile output")
14271427
monitor := flag.Bool("monitor", false, "enable serial monitor")
14281428
baudrate := flag.Int("baudrate", 115200, "baudrate of serial monitor")
1429+
quiet := flag.Bool("quiet", false, "suppress the rpk deploy command output")
14291430

14301431
// Internal flags, that are only intended for TinyGo development.
14311432
printIR := flag.Bool("internal-printir", false, "print LLVM IR")
@@ -1572,9 +1573,11 @@ func main() {
15721573

15731574
err := Build(pkgName, outpath, options)
15741575
handleCompilerError(err)
1575-
fmt.Println("build successful")
1576-
fmt.Println("deploy your transform to a topic:")
1577-
fmt.Println("\trpk transform deploy")
1576+
if !*quiet {
1577+
fmt.Println("build successful")
1578+
fmt.Println("deploy your transform to a topic:")
1579+
fmt.Println("\trpk transform deploy")
1580+
}
15781581
case "build-library":
15791582
// Note: this command is only meant to be used while making a release!
15801583
if outpath == "" {

0 commit comments

Comments
 (0)