-
Notifications
You must be signed in to change notification settings - Fork 21
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
0 parents
commit 2bbe022
Showing
9 changed files
with
256 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[package] | ||
name = "freshfetch" | ||
version = "0.1.0" | ||
authors = ["K4rakara <jack@insertdomain.name>"] | ||
edition = "2018" | ||
|
||
[dependencies] | ||
clml_rs = { git = "https://github.com/K4rakara/clml-rs", features = [ "advanced" ] } |
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,21 @@ | ||
<cyan> | ||
-` | ||
.o+` | ||
`ooo/ | ||
`+oooo: | ||
`+oooooo: | ||
-+oooooo+: | ||
`/:-:++oooo+: | ||
`/++++/+++++++: | ||
`/++++++++++++++: | ||
`/+++ooooooooooooo/` | ||
./ooosssso++osssssso+` | ||
.oossssso-````/ossssss+` | ||
-osssssso. :ssssssso. | ||
:osssssss/ osssso+++. | ||
/ossssssss/ +ssssooo/- | ||
`/ossssso+/:- -:/+osssso+- | ||
`+sso+:-` `.-/+oso: | ||
`++:. `-/+/ | ||
.` `/ | ||
<reset> |
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,10 @@ | ||
/// ASCII art of various distros. | ||
static ASCII_ART: &[(&'static str, &'static str)] = &[ | ||
( "arch", include_str!("./arch.clml"), ), | ||
( "tux_classic", include_str!("./tux_classic.clml"), ), | ||
]; | ||
|
||
pub(crate) fn get_ascii_art(of: &str) -> &'static str { | ||
for distro in ASCII_ART.iter() { if distro.0 == of { return distro.1 } } | ||
include_str!("./tux_classic.clml") | ||
} |
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,14 @@ | ||
<bold><255 8> | ||
##### | ||
####### | ||
##<reset><bold>O<255 8>#<reset><bold>O<255 8>## | ||
#<yellow>#####<255 8># | ||
##<reset><bold>##<yellow>###<reset><bold>##<255 8>## | ||
#<reset><bold>##########<255 8>## | ||
#<reset><bold>############<255 8>## | ||
#<reset><bold>############<255 8>## | ||
<yellow>#<255 8>#<reset><bold>############<255 8>##<yellow># | ||
######<255 8>#<reset><bold>#######<255 8>#<yellow>###### | ||
#######<255 8>#<reset><bold>#####<255 8>#<yellow>####### | ||
######<255 8>######<yellow>##### | ||
<reset> |
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 @@ | ||
pub(crate) mod ascii_art; |
Empty file.
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,9 @@ | ||
pub(crate) extern crate clml_rs; | ||
|
||
pub(crate) mod assets; | ||
|
||
use clml_rs::clml; | ||
|
||
fn main() { | ||
println!("{}", clml(assets::ascii_art::get_ascii_art("tux_classic"))); | ||
} |