huxerui.git
importRepository inspection and Git operations for HuxerUI
import huxerui.git;
模块名读自上游 modules/git.cppm 里的 `export module` 声明。
mcpp add huxerui.git@0.1.1
用法
来自本仓库自己的测试项目 —— CI 真的编译并运行过,不是为了网站写的。
import std;
import huxerui;
import huxerui.git;
namespace fs = std::filesystem;
namespace git = huxerui::git;
namespace {
void Require(bool condition, std::string_view message) {
if (!condition) {
throw std::runtime_error(std::string(message));
}
}
template <class T>
T RequireOk(git::GitResult<T> result, std::string_view op) {
if (!result.Succeeded()) {
throw std::runtime_error(std::string(op) + " failed: " + result.Error().message);
}
return std::move(result).Value();
}
// …
tests/examples/huxerui-git/tests/git.cpp · 项目 tests/examples/huxerui-git
构建 · 上游清单
- modules
huxerui.git- targets
git (lib)- language
c++23- manifest version
0.1.1- dependencies
huxerui, compat- 来源
https://raw.githubusercontent.com/HuxerUI/Lib-Git/v0.1.1/mcpp.toml
版本
| 版本 | 平台 | 镜像 | sha256 |
|---|---|---|---|
0.1.1 最新 |
LinuxWindowsmacOS | 源站 | 43eb826f58d6… |