* Add manpage generation. * Hide xtask compilation info. This changes the default behavior of the `cargo run` command for xtasks to hide the compilation info. This makes sense as xtask's are run as a program, and showing the compilation info every time clutters stdout with unrelated info. * Move ncspot's `clap::Command` to `lib.rs`. Moving the `clap::Command` used internally by ncspot to a library allows it to be easily shared between different packages (xtask and ncspot itself). This commit also reworks the xtasks to use clap for parsing the xtask arguments, which simplifies writing new xtasks. * Make `generate-manpage` `--output` optional. When more xtasks get added, it would make sense to have a `generate-all` subcommand that executes all xtasks, which wouldn't be able to have options for every separate subcommand. Therefore the `output` argument should be optional, and by default output to the `misc` directory which contains extra metadata files already. * Add packaging info to `README.md`. Update the README to include information for packagers. The information includes provided files as well as info on how to generate some of them.
14 lines
246 B
TOML
14 lines
246 B
TOML
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[package]
|
|
name = "xtask"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
clap_mangen = "0.2.8"
|
|
clap = "4.1.6"
|
|
|
|
[dependencies.ncspot]
|
|
path = ".."
|