1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
// SPDX-License-Identifier: LGPL-3.0-or-later
// Author: Kristian Lytje
#pragma once
#include <string_view>
namespace ausaxs::console {
/**
* @brief Print a critical message. The text will be red in the terminal.
* This will always be printed.
*/
void print_critical(std::string_view text);
/**
* @brief Print further critical text. The text will be white in the terminal.
* This will always be printed.
*/
void print_text_critical(std::string_view text);
/**
* @brief Print a warning message. The text will be red in the terminal.
* This will only be printed if warnings are enabled.
*/
void print_warning(std::string_view text);
/**
* @brief Print a success message. The text will be green in the terminal.
* This will only be printed if verbose output is enabled.
*/
void print_success(std::string_view text);
/**
* @brief Print a failure message. The text will be red in the terminal.
* This will only be printed if verbose output is enabled.
*/
void print_failure(std::string_view text);
/**
* @brief Print a info message. The text will be blue in the terminal.
* This will only be printed if verbose output is enabled.
*/
void print_info(std::string_view text);
/**
* @brief Print a text message. The text will be white in the terminal.
* This will only be printed if verbose output is enabled.
* Automatic indentation based on the current indentation level will be added to the text.
*/
void print_text(std::string_view text);
/**
* @brief Print a minor text message. The text will be white in the terminal.
* This will only be printed if minor messages are enabled.
* Automatic indentation based on the current indentation level will be added to the text.
*/
void print_text_minor(std::string_view text);
/**
* @brief Add another indentation to print_text output.
*/
void indent(int level = 1);
/**
* @brief Remove an indentation from print_text output.
*/
void unindent(int level = 1);
}
|