-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Move CLI UI to ui/console package
Resolves #2787 (comment) Also fixes the issue with printing the cloud progress bar conditionally, and removes the ModifyAndPrintBar method.
- Loading branch information
Ivan Mirić
committed
Dec 12, 2022
1 parent
904db87
commit 6ca990a
Showing
4 changed files
with
37 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package cmd | ||
|
||
import "go.k6.io/k6/ui/console/pb" | ||
|
||
func maybePrintBanner(gs *globalState) { | ||
if !gs.flags.quiet { | ||
gs.console.Printf("\n%s\n\n", gs.console.Banner()) | ||
} | ||
} | ||
|
||
func maybePrintBar(gs *globalState, bar *pb.ProgressBar) { | ||
if !gs.flags.quiet { | ||
gs.console.PrintBar(bar) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters