summaryrefslogtreecommitdiff
path: root/src/execute.h
blob: 4288bb73cd1bfef5a95bbdf446eec20c839b1f17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// -*- c++ -*-
// Distributed under the BSD 2-Clause License.
// See accompanying file LICENSE for details.
#pragma once

#include <string>
#include <vector>
#include <map>

namespace ctor {
struct settings;
}//ctor::

int execute(const ctor::settings& settings,
            const std::string& command,
            const std::vector<std::string>& args = {},
            const std::map<std::string, std::string>& env = {},
            bool terminate = false);