-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
filled out help_view option and implemented logic to trigger it
- Loading branch information
1 parent
944fd94
commit c5bbd12
Showing
6 changed files
with
35 additions
and
9 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
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,2 +1,3 @@ | ||
pub mod default_view; | ||
pub mod debug_view; | ||
pub mod help_view; |
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,5 +1,3 @@ | ||
use std::io; | ||
|
||
use tui::{ | ||
backend::Backend, | ||
widgets::{ | ||
|
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,23 @@ | ||
pub fn print_help_text() { | ||
let help_text = " | ||
Usage: | ||
csv-tui [options] Run CSV editor | ||
Options: | ||
-h, --help Print this help message | ||
-f, --filename Open file defined in next arg in editor | ||
-d, --debug Run CSV editor in Debug mode | ||
-c, --comma Set the CSV delimiter to comma | ||
-t, --tab Set the CSV delimiter to tab | ||
-sc, --semicolon Set the CSV delimiter to semicolon | ||
-s, --space Set the CSV delimiter to space | ||
Examples: | ||
csv-tui Opens empty editor | ||
csv-tui -f test.csv Opens test.csv into the editor | ||
csv-tui -f test.csv -sc Tries to open test.csv using semicolon as delimiter | ||
csv-tui --tab Opens empty editor, setting delimiter to tab | ||
csv-tui --debug Opens empty editor in debug mode | ||
"; | ||
println!("{}", help_text); | ||
} |