Showcases the custom theme by printing messages with different styles.
(self, _: cmd2.Statement)
| 36 | |
| 37 | @cmd2.with_category("Theme Commands") |
| 38 | def do_theme_show(self, _: cmd2.Statement): |
| 39 | """Showcases the custom theme by printing messages with different styles.""" |
| 40 | self.poutput("This is a basic output message.") |
| 41 | self.psuccess("This is a success message.") |
| 42 | self.pwarning("This is a warning message.") |
| 43 | self.perror("This is an error message.") |
| 44 | self.pexcept(ValueError("This is a dummy ValueError exception.")) |
| 45 | |
| 46 | |
| 47 | if __name__ == "__main__": |