-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed .unwrap() none value error as well as refactored some of the so…
…rting methods into one method with a generic type that returns ordering
- Loading branch information
1 parent
f9ff5a8
commit 80d74aa
Showing
9 changed files
with
165 additions
and
146 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "natls" | ||
version = "2.1.10" | ||
version = "2.1.11" | ||
authors = ["Will Lane <[email protected]>"] | ||
description = "nat - the 'ls' replacement you never knew you needed" | ||
license = "MIT" | ||
|
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,31 +1,15 @@ | ||
pub fn bold(i: &str) -> String { | ||
format!("\x1B[1m{}\x1B[0m", i) | ||
} | ||
pub fn bold(i: &str) -> String { format!("\x1B[1m{}\x1B[0m", i) } | ||
|
||
pub fn dimmed(i: &str) -> String { | ||
format!("\x1B[2m{}\x1B[0m", i) | ||
} | ||
pub fn dimmed(i: &str) -> String { format!("\x1B[2m{}\x1B[0m", i) } | ||
|
||
pub fn italic(i: &str) -> String { | ||
format!("\x1B[3m{}\x1B[0m", i) | ||
} | ||
pub fn italic(i: &str) -> String { format!("\x1B[3m{}\x1B[0m", i) } | ||
|
||
pub fn underline(i: &str) -> String { | ||
format!("\x1B[4m{}\x1B[0m", i) | ||
} | ||
pub fn underline(i: &str) -> String { format!("\x1B[4m{}\x1B[0m", i) } | ||
|
||
pub fn blink(i: &str) -> String { | ||
format!("\x1B[5m{}\x1B[0m", i) | ||
} | ||
pub fn blink(i: &str) -> String { format!("\x1B[5m{}\x1B[0m", i) } | ||
|
||
pub fn reverse(i: &str) -> String { | ||
format!("\x1B[7m{}\x1B[0m", i) | ||
} | ||
pub fn reverse(i: &str) -> String { format!("\x1B[7m{}\x1B[0m", i) } | ||
|
||
pub fn hidden(i: &str) -> String { | ||
format!("\x1B[8m{}\x1B[0m", i) | ||
} | ||
pub fn hidden(i: &str) -> String { format!("\x1B[8m{}\x1B[0m", i) } | ||
|
||
pub fn stricken(i: &str) -> String { | ||
format!("\x1B[9m{}\x1B[0m", i) | ||
} | ||
pub fn stricken(i: &str) -> String { format!("\x1B[9m{}\x1B[0m", i) } |
Oops, something went wrong.