make the default output a bit nicer
This commit is contained in:
parent
e03a98cbf6
commit
7fa2f87c8b
|
@ -1,4 +1,2 @@
|
||||||
## Welcome to Rustlings!
|
|
||||||
|
|
||||||
To get started, run `rustlings verify` in order to get the first exercise.
|
To get started, run `rustlings verify` in order to get the first exercise.
|
||||||
Make sure to have your editor open!
|
Make sure to have your editor open!
|
|
@ -32,6 +32,9 @@ fn main() {
|
||||||
let ss = SyntaxSet::load_defaults_newlines();
|
let ss = SyntaxSet::load_defaults_newlines();
|
||||||
let ts = ThemeSet::load_defaults();
|
let ts = ThemeSet::load_defaults();
|
||||||
|
|
||||||
|
if None == matches.subcommand_name() {
|
||||||
|
println!("");
|
||||||
|
println!(r#" welcome to... "#);
|
||||||
println!(r#" _ _ _ "#);
|
println!(r#" _ _ _ "#);
|
||||||
println!(r#" _ __ _ _ ___| |_| (_)_ __ __ _ ___ "#);
|
println!(r#" _ __ _ _ ___| |_| (_)_ __ __ _ ___ "#);
|
||||||
println!(r#" | '__| | | / __| __| | | '_ \ / _` / __| "#);
|
println!(r#" | '__| | | / __| __| | | '_ \ / _` / __| "#);
|
||||||
|
@ -39,6 +42,7 @@ fn main() {
|
||||||
println!(r#" |_| \__,_|___/\__|_|_|_| |_|\__, |___/ "#);
|
println!(r#" |_| \__,_|___/\__|_|_|_| |_|\__, |___/ "#);
|
||||||
println!(r#" |___/ "#);
|
println!(r#" |___/ "#);
|
||||||
println!("");
|
println!("");
|
||||||
|
}
|
||||||
|
|
||||||
if let Some(matches) = matches.subcommand_matches("run") {
|
if let Some(matches) = matches.subcommand_matches("run") {
|
||||||
run(matches.clone());
|
run(matches.clone());
|
||||||
|
|
Loading…
Reference in New Issue