mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-22 18:05:45 -05:00
[libcalamares] Mark CommandLine as public, expand API a little
This commit is contained in:
parent
6119153af3
commit
456bb1b3eb
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue