1
0

feat: finish env remains functions

This commit is contained in:
2025-12-12 13:23:08 +08:00
parent 5ff8f2d8cc
commit 8cd125a4b9
3 changed files with 280 additions and 43 deletions

View File

@@ -72,6 +72,7 @@ namespace yycc::env {
* @brief Returns an list of (variable, value) pairs of strings,
* for all the environment variables of the current process.
* @return The list holding all variables.
* @exception std::runtime_error Error occurs when getting variables.
*/
std::vector<VarPair> get_vars();
@@ -131,6 +132,7 @@ namespace yycc::env {
/**
* @brief Returns the arguments that this program was started with (normally passed via the command line).
* @return The list holding all argument one by one.
* @exception std::runtime_error Error occurs when getting arguments.
*/
std::vector<std::u8string> get_args();