• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

agama-project / agama / 11177307176
73%

Build:
DEFAULT BRANCH: master
Ran 04 Oct 2024 09:24AM UTC
Jobs 2
Files 570
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Oct 2024 09:15AM UTC coverage: 70.324% (-0.1%) from 70.457%
11177307176

push

github

web-flow
feat(rust): add tasks using the xtask pattern (#1650)

While working on [Agama's website](https://agama-project.github.io/) we
wanted to include some documentation about the CLI. Fortunately,
[clap](https://crates.io/crates/clap) includes support for generating
markdown documentation, man pages, shell completions, etc.

After some research, we found out that the Rust community is adopting
the [xtask pattern](https://github.com/matklad/cargo-xtask), where you
write those tasks using Rust code. And it plays really well with clap,
as we can generate those artifcats from the sources.

However, we needed to do some refactoring to expose the CLI as a `lib`
crate so we can use it in our tasks.

This pull request includes the following tasks: `manpages`,
`completions` and `markdown`. The first step should be to take advantage
of them and generate the artifacts at runtime. It is open for discussion
whether we should do the same with the OpenAPI docs.

<details>
<summary>Generating the man pages</summary>

```shell
$ cargo xtask manpages                                                                                                                                                              at 15:05:46 
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.27s
     Running `target/debug/xtask manpages`
Generate manpages documentation at out/man

$ ls out/man/                                                                                                                                                                       agama-auth-login.1
agama-auth-logout.1
agama-auth-show.1
agama-auth.1
agama-config-edit.1
agama-config-load.1
agama-config-show.1
agama-config.1
agama-download.1
agama-install.1
agama-logs-list.1
agama-logs-store.1
agama-logs.1
agama-probe.1
agama-profile-autoyast.1
agama-profile-evaluate.1
agama-profile-import.1
agama-profile-validate.1
agama-profile.1
agama-questions-answers.1
aga... (continued)

0 of 102 new or added lines in 2 files covered. (0.0%)

1 existing line in 1 file now uncovered.

15640 of 22240 relevant lines covered (70.32%)

26.73 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
42
0.0
rust/xtask/src/main.rs
60
0.0
rust/agama-cli/src/lib.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% rust/agama-cli/src/main.rs
Subprojects
ID Flag name Job ID Ran Files Coverage
2 rust 11177307176.2 04 Oct 2024 09:24AM UTC 106
25.4
GitHub Action Run
2 service 11121722229.2 01 Oct 2024 08:41AM UTC 464
88.58
GitHub Action Run
Source Files on build 11177307176
  • Tree
  • List 570
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #11177307176
  • d29a1677 on github
  • Prev Build on master (#11121722229)
  • Next Build on master (#11178577316)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc