[libcalamares] Mark CommandLine as public, expand API a little
This commit is contained in:
parent
6119153af3
commit
456bb1b3eb
@ -29,7 +29,7 @@ namespace Calamares
|
|||||||
* Each command can have an associated timeout in seconds. The timeout
|
* Each command can have an associated timeout in seconds. The timeout
|
||||||
* defaults to 10 seconds. Provide some convenience naming and construction.
|
* defaults to 10 seconds. Provide some convenience naming and construction.
|
||||||
*/
|
*/
|
||||||
class CommandLine
|
class DLLEXPORT CommandLine
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static inline constexpr std::chrono::seconds TimeoutNotSet() { return std::chrono::seconds( -1 ); }
|
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:
|
private:
|
||||||
QString m_command;
|
QString m_command;
|
||||||
QStringList m_environment;
|
QStringList m_environment;
|
||||||
|
Loading…
Reference in New Issue
Block a user