summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2018-07-03 13:49:07 +0300
committerYuval Adam <_@yuv.al>2018-07-03 13:49:07 +0300
commitdb606609af91987f62e9496adc65ca74c02352d5 (patch)
tree879c1e715b9b7610b689c2f1a06b937287933c07
parentc7ae62a2aafd0b4755e4d76f82c0e6aca5626dd5 (diff)
Add basic usage print with color
-rw-r--r--Cargo.lock19
-rw-r--r--Cargo.toml1
-rw-r--r--src/main.rs7
3 files changed, 26 insertions, 1 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 314ef97..e0c041e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,4 +1,23 @@
[[package]]
+name = "colored"
+version = "1.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+dependencies = [
+ "lazy_static 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
+]
+
+[[package]]
+name = "lazy_static"
+version = "0.2.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+
+[[package]]
name = "rustcast"
version = "0.1.0"
+dependencies = [
+ "colored 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)",
+]
+[metadata]
+"checksum colored 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b0aa3473e85a3161b59845d6096b289bb577874cafeaf75ea1b1beaa6572c7fc"
+"checksum lazy_static 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "76f033c7ad61445c5b347c7382dd1237847eb1bce590fe50365dcb33d546be73"
diff --git a/Cargo.toml b/Cargo.toml
index c5502a1..e8374df 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -4,3 +4,4 @@ version = "0.1.0"
authors = ["Yuval Adam <_@yuv.al>"]
[dependencies]
+colored = "1.6"
diff --git a/src/main.rs b/src/main.rs
index e7a11a9..8907d4c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,3 +1,8 @@
+extern crate colored;
+
+use colored::*;
+
fn main() {
- println!("Hello, world!");
+ println!("\n{}", "Rustcast v0.1.0".color("blue").bold());
+ println!("\n usage: rustcast <media.file>\n");
}