feat: change log panel size, closes #50
This commit is contained in:
@@ -30,6 +30,7 @@ pub struct Config {
|
||||
pub show_timestamp: bool,
|
||||
pub timezone: Option<TimeZone>,
|
||||
pub timestamp_format: String,
|
||||
pub show_logs: bool,
|
||||
pub use_cli: bool,
|
||||
}
|
||||
|
||||
@@ -51,6 +52,7 @@ impl From<&Args> for Config {
|
||||
timezone: Self::parse_timezone(args.timezone.clone()),
|
||||
timestamp_format: Self::parse_timestamp_format(None),
|
||||
use_cli: args.use_cli,
|
||||
show_logs: true,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -73,6 +75,7 @@ impl From<ConfigFile> for Config {
|
||||
timezone: Self::parse_timezone(config_file.timezone),
|
||||
timestamp_format: Self::parse_timestamp_format(config_file.timestamp_format),
|
||||
use_cli: config_file.use_cli.unwrap_or(false),
|
||||
show_logs: config_file.show_logs.unwrap_or(true),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user