[libcalamares] Add an expand() to command lines and lists

- While this is primarily convenient for testing (e.g. checking
  that a command is expanded the way we expect), it simplifies
  some of the code because it's now clear that run() uses an
  expanded copy of the command-list to do the actual work.
This commit is contained in:
Adriaan de Groot 2022-04-13 14:08:21 +02:00
parent d76dd2f8e0
commit bbea67ecb4
5 changed files with 142 additions and 38 deletions

View file

@ -28,6 +28,13 @@ DictionaryExpander::DictionaryExpander()
{
}
DictionaryExpander::DictionaryExpander( Calamares::String::DictionaryExpander&& other )
: KWordMacroExpander( other.escapeChar() )
, d( std::move( other.d ) )
{
}
DictionaryExpander::~DictionaryExpander() {}