30namespace fs = std::filesystem;
42 , std::set<ns_reserved::ns_unshare::Unshare>
const& unshares
46 Pop(manager.
set(unshares));
58 , std::set<ns_reserved::ns_unshare::Unshare>
const& unshares
62 Pop(manager.
add(unshares));
74 , std::set<ns_reserved::ns_unshare::Unshare>
const& unshares
78 Pop(manager.
del(unshares));
105 for(
auto const& unshare : unshares)
107 std::println(
"{}", unshare);
Manages FlatImage unshare options stored in reserved space.
Value< void > set(std::set< Unshare > const &unshares)
Sets the specified unshare options (replaces existing)
Value< void > del(std::set< Unshare > const &unshares)
Removes unshare options from existing configuration.
Value< void > clear() noexcept
Clears all unshare options.
Value< std::set< std::string > > to_strings() const noexcept
Converts enabled unshare options to string representations.
Value< void > add(std::set< Unshare > const &unshares)
Adds unshare options to existing configuration.
Unshare namespace options command implementation.
Value< void > list(fs::path const &path_file_binary)
Lists all enabled unshare options.
Value< void > add(fs::path const &path_file_binary, std::set< ns_reserved::ns_unshare::Unshare > const &unshares)
Adds unshare options to existing configuration.
Value< void > clear(fs::path const &path_file_binary)
Clears all unshare options.
Value< void > set(fs::path const &path_file_binary, std::set< ns_reserved::ns_unshare::Unshare > const &unshares)
Sets the unshare options (replaces existing)
Value< void > del(fs::path const &path_file_binary, std::set< ns_reserved::ns_unshare::Unshare > const &unshares)
Removes unshare options from existing configuration.
Manages the unshare namespace options reserved space.
Enhanced expected type with integrated logging capabilities.