blob: b4e87322f7e2c057024787243877b4847d363a12 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/*
* This source code is released into the public domain.
*/
module;
#include <expected>
#include <format>
module nihil.posix;
import nihil.error;
import nihil.monad;
namespace nihil {
auto shell(std::string_view const &command) -> std::expected<base_executor_type, error>
{
return execl("/bin/sh", "sh", "-c", command);
}
} // namespace nihil
|