diff --git a/main.cpp b/main.cpp index 3bc2f3b..a19dde1 100644 --- a/main.cpp +++ b/main.cpp @@ -297,6 +297,36 @@ void action_select_channel() { } } +bool run_command(const std::vector &cmd, const std::vector> &placeholders={}) { + const size_t cmd_size = cmd.size(); + + if(!cmd_size) + return true; + + const char *cmdline[cmd_size + 1]; + for(size_t c=0; c