Implement SSH key file path env substitution
Supports all platforms, including Windows with %FOO% syntax. Fixes #3523
This commit is contained in:
committed by
Jonathan White
parent
47ce81c9a6
commit
6fc7be78ea
@@ -22,6 +22,7 @@
|
||||
#include "core/Global.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QProcessEnvironment>
|
||||
#include <QString>
|
||||
#include <QUuid>
|
||||
|
||||
@@ -48,6 +49,8 @@ namespace Tools
|
||||
bool useWildcards = false,
|
||||
bool exactMatch = false,
|
||||
bool caseSensitive = false);
|
||||
QString envSubstitute(const QString& filepath,
|
||||
QProcessEnvironment environment = QProcessEnvironment::systemEnvironment());
|
||||
|
||||
template <typename RandomAccessIterator, typename T>
|
||||
RandomAccessIterator binaryFind(RandomAccessIterator begin, RandomAccessIterator end, const T& value)
|
||||
|
||||
Reference in New Issue
Block a user