From 456bb1b3ebae77e78ea4889d91bff7e96ec8b0d4 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Sat, 6 Jul 2024 23:59:14 +0200 Subject: [PATCH] [libcalamares] Mark CommandLine as public, expand API a little --- src/libcalamares/utils/CommandList.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libcalamares/utils/CommandList.h b/src/libcalamares/utils/CommandList.h index b5b4fe7ad..b3d1fc4af 100644 --- a/src/libcalamares/utils/CommandList.h +++ b/src/libcalamares/utils/CommandList.h @@ -29,7 +29,7 @@ namespace Calamares * Each command can have an associated timeout in seconds. The timeout * defaults to 10 seconds. Provide some convenience naming and construction. */ -class CommandLine +class DLLEXPORT CommandLine { public: static inline constexpr std::chrono::seconds TimeoutNotSet() { return std::chrono::seconds( -1 ); } @@ -92,6 +92,9 @@ public: } } + /** @brief Unconditionally set verbosity (can also reset it to nullopt) */ + void setVerbose( std::optional< bool > v ) { m_verbose = v; } + private: QString m_command; QStringList m_environment;