#arch-linux #messages #command-line #cli


Command line messages in the style that is used in Arch Linux scripts

2 unstable releases

0.2.0 Oct 17, 2022
0.1.2 Oct 8, 2022

#529 in Command-line interface

Download history 16/week @ 2023-01-29 5/week @ 2023-02-05 8/week @ 2023-02-12 7/week @ 2023-02-19 5/week @ 2023-03-05 6/week @ 2023-03-12 2/week @ 2023-03-26 8/week @ 2023-04-02 54/week @ 2023-04-09 3/week @ 2023-04-16 15/week @ 2023-04-23 32/week @ 2023-04-30 11/week @ 2023-05-07 3/week @ 2023-05-14

61 downloads per month




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.