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:
28
src/yycc/carton/clap/summary.cpp
Normal file
28
src/yycc/carton/clap/summary.cpp
Normal 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
|
||||
Reference in New Issue
Block a user