1
0

feat: add lost functions for env namespace.

- add some lost functions for env namespace according to Rust std library. hiwever some functions are not implemented.
- change some function's signatures located in env namespace.
- reduce some useless error kine in env namespace.
This commit is contained in:
2025-12-07 21:47:54 +08:00
parent f76eabee7a
commit 8b7ab2c870
4 changed files with 114 additions and 35 deletions

View File

@ -113,7 +113,7 @@ namespace yycc::carton::clap::manual {
auto executable = ENV::current_exe();
if (executable.has_value()) {
TERMCOLOR::cprintln(trctx.usage_title, TERMCOLOR::Color::Yellow, TERMCOLOR::Color::Default, TERMCOLOR::Attribute::Default, dst);
dst << INDENT << FORMAT::format(trctx.usage_body, executable.value()) << std::endl;
dst << INDENT << FORMAT::format(trctx.usage_body, executable.value().u8string()) << std::endl;
}
const auto &variables = app.get_variables();