| 143 | } |
| 144 | |
| 145 | ContainerError Container::removeProject(const QString &projectPath) |
| 146 | { |
| 147 | qInfo() << __FUNCTION__; |
| 148 | ContainerError error; |
| 149 | pathUuidMap.remove(projectPath); |
| 150 | |
| 151 | auto cachePath = CustomPaths::user(CustomPaths::Flags::Configures); |
| 152 | QFile containersUuid(cachePath + QDir::separator() + QString{"containers"}); |
| 153 | if (containersUuid.exists()) { |
| 154 | // sed '/parten/d' containers.uuid |
| 155 | QString args = "/" + projectPath.split("/").last() + "/d"; |
| 156 | ProcessUtil::execute("sed", QStringList{args, QString{"containers"} }); |
| 157 | } |
| 158 | containersUuid.close(); |
| 159 | |
| 160 | return error; |
| 161 | } |
| 162 | |
| 163 | ContainerError Container::execContainerCommand(const QString &projectPath, const QString &text) |
| 164 | { |