1
0

feat: finish summary and application for clap.

- finish summary and application for clap.
- add patch for utf8 string in std::format.
This commit is contained in:
2025-09-24 16:20:21 +08:00
parent 776adb0c96
commit a61955bb09
8 changed files with 203 additions and 2 deletions

View File

@@ -0,0 +1,28 @@
#include "summary.hpp"
namespace yycc::carton::clap::summary {
Summary::Summary(const std::u8string_view &name,
const std::u8string_view &author,
const std::u8string_view &version,
const std::u8string_view &description) : name(name), author(author), version(version), description(description) {}
Summary::~Summary() {}
std::u8string_view Summary::get_name() const {
return this->name;
}
std::u8string_view Summary::get_author() const {
return this->author;
}
std::u8string_view Summary::get_version() const {
return this->version;
}
std::u8string_view Summary::get_description() const {
return this->description;
}
} // namespace yycc::carton::clap::summary