[libcalamares] Move CommandList into libcalamares

- Move CommandList so it can be used from more modules than
   just ShellProcess
 - Allow a CommandList to run itself. This centralizes
   code for executing one or more commands and simplifies
   the ShellProcess module.

Various small cleanups:
 - mention instance id in log message
 - code formatting / style
This commit is contained in:
Adriaan de Groot 2018-01-15 05:59:44 -05:00
parent 60f4dd7b3b
commit 913690650f
8 changed files with 142 additions and 123 deletions

View file

@ -24,11 +24,11 @@
#include <CppJob.h>
#include <utils/CommandList.h>
#include <utils/PluginFactory.h>
#include <PluginDllMacro.h>
class CommandList;
class PLUGINDLLEXPORT ShellProcessJob : public Calamares::CppJob
{
@ -45,7 +45,7 @@ public:
void setConfigurationMap( const QVariantMap& configurationMap ) override;
private:
CommandList *m_commands;
CalamaresUtils::CommandList* m_commands;
bool m_dontChroot;
};