arch_msgs

Crates.ioarch_msgs
lib.rsarch_msgs
version0.2.0
sourcesrc
created_at2022-10-08 10:00:58.111661
updated_at2022-10-17 15:21:51.803678
descriptionCommand line messages in the style that is used in Arch Linux scripts
homepagehttps://gitlab.com/rust-utils/arch_msgs
repositoryhttps://gitlab.com/rust-utils/arch_msgs
max_upload_size
id683444
size94,811
mipi (mipimipi)

documentation

https://docs.rs/arch_msgs/latest/arch_msgs/

README

arch_msgs

Crates.io (latest) REUSE status

arch_msgs provides macros to print messages in the style that is used by Arch Linux scripts. Command line tools written in Rust can print command line messages for errors, warnings, etc. with this crate in the same style as Arch Linux scripts do.

In an Arch Linux installation, corresponding functions are contained in the script /usr/share/makepkg/util/message.sh and used by other scripts such as makepkg or mkarchroot.

Mapping of Arch Linux functions to the macros of this crate

Message type Arch Linux function Corresponding macro of this crate
Error error ... error!(...)
Information msg2 ... info!(...)
Message msg ... msg!(...)
Plain message plain ... plain!(...)
Question ask ... question!(...)
Warning warning ... warning!(...)

All macros of this crate have the same signature as println and print a new line at the end.

Commit count: 18

cargo fmt