1 unstable release
0.7.0 | May 3, 2023 |
---|---|
0.6.0 |
|
0.5.0 |
|
0.4.0 |
|
0.1.0 |
|
#10 in #poetry
54 downloads per month
7KB
126 lines
poetry_finder
This crate simply enables the user (with sudo
rights) to install Poetry and all its dependencies (packages). If Poetry is already installed, it will be properly handeled.
It is assumed that the system on which the compiler runs is Debian-based.
poetry_finder in action
fn main() {
use poetry_finder::run;
// Password to check the sudo access
let passwd = "password";
if let Err(e) = run(passwd) {
println!("{}", e);
std::process::exit(1);
}
}
lib.rs
:
Checks if poetry is installed on the system. It is assumed that the system is debian-based distribution. if poetry is not installed, it will try installing it (along with its prerequisites).
Examples
/// Password to check the sudo access
let passwd = "password";
if let Err(e) = run(passwd) {
println!("{}", e);
std::process::exit(1);
}