lib/utils: implement read_from_stdin

This commit is contained in:
Dirk-Jan C. Binnema
2023-04-29 22:55:54 +03:00
parent e4af910d04
commit 3a05dd8725
4 changed files with 40 additions and 6 deletions

View File

@ -169,6 +169,14 @@ std::string join_paths(S&& s, Args...args) {
*/
GCancellable* g_cancellable_new_with_timeout(guint timeout);
/**
* Read for standard input
*
* @return data from standard input or an error.
*/
Result<std::string> read_from_stdin();
} // namespace Mu
#endif /* MU_UTILS_FILE_HH__ */