-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7910db9
commit ba980ee
Showing
12 changed files
with
168 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Maintainer: Hunter Wittenborn <[email protected]> | ||
pkgname=mpr-cli | ||
pkgver=0.4.2 | ||
pkgver=0.5.0 | ||
pkgrel=1 | ||
pkgdesc='The official command-line interface for the makedeb Package Repository' | ||
arch=('any') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
pub use colored::Colorize; | ||
use colored::CustomColor; | ||
use lazy_static::lazy_static; | ||
|
||
lazy_static! { | ||
pub static ref UBUNTU_ORANGE: CustomColor = CustomColor::new(255, 175, 0); | ||
pub static ref UBUNTU_PURPLE: CustomColor = CustomColor::new(95, 95, 255); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
use ansi_term::{Colour, Style}; | ||
use crate::color::Colorize; | ||
|
||
pub fn info(str: &str) { | ||
println!("{}", str); | ||
println!("{} {}", "Info:".cyan().bold(), str); | ||
} | ||
|
||
pub fn error(str: &str) { | ||
println!("{} {}", Colour::Red.paint("Err:"), str); | ||
pub fn warning(str: &str) { | ||
println!("{} {}", "Err:".yellow().bold(), str); | ||
} | ||
|
||
pub fn error_bold(str: &str) { | ||
println!( | ||
"{} {}", | ||
Colour::Red.paint("Err:"), | ||
Style::new().bold().paint(str) | ||
); | ||
pub fn error(str: &str) { | ||
println!("{} {}", "Err:".red().bold(), str); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.