File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,24 @@ pub fn exit_err(message: impl Into<String>) -> ! {
150150 exit ( 1 ) ;
151151}
152152
153+ pub fn print_verbose ( settings : & CommandLineSettings , message : impl Into < String > ) {
154+ if settings. verbose {
155+ println ! ( "{}" , message. into( ) ) ;
156+ }
157+ }
158+
159+ pub fn print_step_verbose ( settings : & CommandLineSettings , message : impl Into < String > ) {
160+ if settings. verbose {
161+ print_step ( message) ;
162+ }
163+ }
164+
165+ pub fn print_success_verbose ( settings : & CommandLineSettings , message : impl Into < String > ) {
166+ if settings. verbose {
167+ print_success ( message) ;
168+ }
169+ }
170+
153171pub fn print_warn ( message : impl Into < String > ) {
154172 println ! ( "{} {}" , Style :: new( ) . fg( Yellow ) . bold( ) . paint( "Warning:" ) , message. into( ) ) ;
155173}
You can’t perform that action at this time.
0 commit comments