We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c694607 commit 3889e6fCopy full SHA for 3889e6f
man/auracle.1.pod
@@ -205,9 +205,9 @@ day in dotted form.
205
206
String array fields: B<{depends}>, B<{makedepends}>, B<{checkdepends}>,
207
B<{optdepends}>, B<{conflicts}>, B<{provides}>, B<{replaces}>, B<{groups}>,
208
-B<{keywords}>, B<{licenses}>. These fields default to using a delimiter of two
209
-whitespace, but can be customized, e.g. B<{depends:,}> to comma delimit the
210
-values of the depends field.
+B<{keywords}>, B<{licenses}>, B<{comaintainers}>. These fields default to using
+a delimiter of two whitespace, but can be customized, e.g. B<{depends:,}> to
+comma delimit the values of the depends field.
211
212
Example: recreating auracle's search output:
213
src/aur/package.cc
@@ -49,6 +49,7 @@ void from_json(const nlohmann::json& j, Package& p) {
49
// clang-format off
50
static const auto& callbacks = *new CallbackMap<Package>{
51
{ "CheckDepends", MakeValueCallback(&Package::checkdepends) },
52
+ { "CoMaintainers", MakeValueCallback(&Package::comaintainers) },
53
{ "Conflicts", MakeValueCallback(&Package::conflicts) },
54
{ "Depends", MakeValueCallback(&Package::depends) },
55
{ "Description", MakeValueCallback(&Package::description) },
src/aur/package.hh
@@ -52,6 +52,7 @@ struct Package {
std::vector<std::string> optdepends;
std::vector<std::string> provides;
std::vector<std::string> replaces;
+ std::vector<std::string> comaintainers;
56
57
std::vector<Dependency> depends;
58
std::vector<Dependency> makedepends;
src/auracle/format.cc
@@ -188,6 +188,7 @@ void Long(const aur::Package& package,
188
fmt::print("{}", Field("Popularity", p.popularity));
189
fmt::print("{}", Field("Maintainer",
190
p.maintainer.empty() ? "(orphan)" : p.maintainer));
191
+ fmt::print("{}", Field("Co-maintainers", p.comaintainers));
192
fmt::print("{}", Field("Submitted", p.submitted));
193
fmt::print("{}", Field("Last Modified", p.modified));
194
if (p.out_of_date > absl::UnixEpoch()) {
@@ -214,6 +215,7 @@ void FormatCustomTo(std::string& out, std::string_view format,
214
215
fmt::arg("name", package.name),
216
fmt::arg("description", package.description),
217
fmt::arg("maintainer", package.maintainer),
218
+ fmt::arg("comaintainers", package.comaintainers),
219
fmt::arg("version", package.version),
220
fmt::arg("pkgbase", package.pkgbase),
221
fmt::arg("url", package.upstream_url),
0 commit comments