Added forever-loop to update bar contents at interval
* New argument --interval to specify update interval
This commit is contained in:
@@ -12,8 +12,8 @@ pub enum TemperatureUnits {
|
||||
impl fmt::Display for TemperatureUnits {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
match self {
|
||||
TemperatureUnits::Metric => write!(f, "Metric"),
|
||||
TemperatureUnits::Imperial => write!(f, "Imperial"),
|
||||
TemperatureUnits::Metric => write!(f, "Metric"),
|
||||
TemperatureUnits::Imperial => write!(f, "Imperial"),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -23,9 +23,10 @@ impl fmt::Display for TemperatureUnits {
|
||||
// --------------------
|
||||
#[derive(Debug,Clone)]
|
||||
pub struct AppOptions {
|
||||
pub weather_units: TemperatureUnits,
|
||||
pub weather_station: String,
|
||||
pub music_progress: bool,
|
||||
pub debug: bool,
|
||||
pub debug_modules: bool,
|
||||
pub interval: u64,
|
||||
pub weather_units: TemperatureUnits,
|
||||
pub weather_station: String,
|
||||
pub music_progress: bool,
|
||||
pub debug: bool,
|
||||
pub debug_modules: bool,
|
||||
}
|
||||
|
Reference in New Issue
Block a user