Compare commits

..

No commits in common. "90656af7aa269782f3d9e73e37d487ab76edb769" and "6512cad4197a6939f26008ce7cc87acf046d7afd" have entirely different histories.

2 changed files with 12 additions and 12 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "crock"
version = "0.1.1"
version = "0.1.0"
edition = "2021"
publish = true
authors = ["Christoph J. Scherr <software@cscherr.de>"]
@ -10,7 +10,6 @@ readme = "README.md"
homepage = "https://git.cscherr.de/PlexSheep/crock"
repository = "https://git.cscherr.de/PlexSheep/crock"
keywords = ["time", "clock", "tui"]
categories = ["date-and-time"]
[dependencies]

View file

@ -1,23 +1,24 @@
#![warn(clippy::pedantic, clippy::style, clippy::nursery)]
#![allow(clippy::question_mark_used)]
use chrono::SubsecRound;
use ratatui::crossterm::event::{
self, poll, DisableMouseCapture, EnableMouseCapture, Event, KeyCode, KeyModifiers,
};
use ratatui::{
backend::CrosstermBackend,
crossterm::event::poll,
layout::{Constraint, Direction, Layout, Rect},
style::Style,
widgets::{Block, Borders, Paragraph},
Terminal,
};
use ratatui::{
crossterm::{
event::{self, DisableMouseCapture, EnableMouseCapture, Event, KeyCode, KeyModifiers},
execute,
terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen},
},
layout::{Constraint, Direction, Layout, Rect},
style::{Style, Stylize},
widgets::Paragraph,
Terminal,
style::Stylize,
};
use std::{io, time::Duration};
const TITLE: &str = "Crock";
fn main() -> Result<(), io::Error> {
// setup terminal
enable_raw_mode()?;