-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support customised logfile dashboards (forks which modify src/custom/…
…*.rs)
- Loading branch information
1 parent
b69b8f3
commit 174e97b
Showing
9 changed files
with
80 additions
and
52 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
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,3 @@ | ||
pub mod app; | ||
pub mod opt; | ||
pub mod ui; |
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,24 @@ | ||
///! Command line options and usage | ||
///! | ||
///! Edit src/custom/opt.rs to create a customised fork of logtail-dash | ||
static MAX_CONTENT: &str = "100"; | ||
|
||
pub use structopt::StructOpt; | ||
|
||
#[derive(StructOpt, Debug)] | ||
#[structopt(about = "Monitor multiple logfiles in the terminal.")] | ||
pub struct Opt { | ||
/// Maximum number of lines to keep for each logfile | ||
#[structopt(short = "l", long, default_value = MAX_CONTENT)] | ||
pub lines_max: usize, | ||
|
||
/// Ignore any existing logfile content | ||
#[structopt(short, long)] | ||
pub ignore_existing: bool, | ||
|
||
/// One or more logfiles to monitor | ||
#[structopt(name = "LOGFILE")] | ||
pub files: Vec<String>, | ||
} | ||
|
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 was deleted.
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,6 @@ | ||
pub mod util; | ||
|
||
#[cfg(feature = "termion")] | ||
pub mod event; | ||
#[cfg(feature = "termion")] | ||
pub use event::{Event, Events}; |