Add internal clear command (#1249)

* Add clear.rs

* update

* update

* cross-platformify

* update

* fix

* format

* fix warnings

* update implementation

* remove return

* remove semicolon

* change from `.output()` to `.status()`

* format
This commit is contained in:
Sean Hellum
2020-01-20 01:05:32 -06:00
committed by Jonathan Turner
parent fb977ab941
commit 3b57ee5dda
3 changed files with 44 additions and 0 deletions

View File

@ -226,6 +226,7 @@ impl History {
}
}
#[allow(dead_code)]
fn create_default_starship_config() -> Option<toml::Value> {
let mut map = toml::value::Table::new();
map.insert("add_newline".into(), toml::Value::Boolean(false));
@ -265,6 +266,7 @@ pub async fn cli() -> Result<(), Box<dyn Error>> {
per_item_command(Mkdir),
per_item_command(Move),
whole_stream_command(Version),
whole_stream_command(Clear),
whole_stream_command(What),
whole_stream_command(Which),
whole_stream_command(Debug),