Compare commits
13 Commits
9117a4a901
...
replace-do
Author | SHA1 | Date | |
---|---|---|---|
bf9b695824
|
|||
176dc9f094 | |||
1b9f8d96fc | |||
|
69d008feb6 | ||
ada020e283
|
|||
708180f9a2 | |||
33ba27bf77 | |||
74a1daac4c
|
|||
3bd243b45c | |||
15620da103 | |||
a228ec82a3 | |||
503680d81c | |||
d13dc5b0a2 |
18
CHANGELOG.md
18
CHANGELOG.md
@@ -6,9 +6,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.2.4] - 2024-12-11
|
||||
## [0.3.2] - 2025-01-07
|
||||
|
||||
### Fixed
|
||||
- *(deps)* update rust crate async-trait to v0.1.85
|
||||
|
||||
## [0.3.1] - 2025-01-02
|
||||
|
||||
### Other
|
||||
- enable publish
|
||||
|
||||
## [0.3.0] - 2025-01-01
|
||||
|
||||
### Added
|
||||
- add small help to see how much time is left in cache
|
||||
|
||||
### Fixed
|
||||
- *(deps)* update rust crate serde to v1.0.217
|
||||
- *(deps)* update rust crate serde to v1.0.216
|
||||
- *(deps)* update tokio-prost monorepo to v0.13.4
|
||||
- *(deps)* update rust crate bytes to v1.9.0
|
||||
@@ -25,6 +39,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- *(deps)* update rust crate octocrab to 0.41.0
|
||||
|
||||
### Other
|
||||
- bump default cache duration to 7 days
|
||||
- *(deps)* update rust crate anyhow to v1.0.95
|
||||
- *(deps)* update rust crate clap to v4.5.23
|
||||
- *(deps)* update all dependencies
|
||||
- *(deps)* update rust crate tracing-subscriber to v0.3.19
|
||||
|
714
Cargo.lock
generated
714
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -3,7 +3,7 @@ members = ["crates/*"]
|
||||
resolver = "2"
|
||||
|
||||
[workspace.package]
|
||||
version = "0.2.4"
|
||||
version = "0.3.3"
|
||||
|
||||
[workspace.dependencies]
|
||||
|
||||
@@ -12,4 +12,4 @@ tokio = { version = "1", features = ["full"] }
|
||||
tracing = { version = "0.1", features = ["log"] }
|
||||
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
|
||||
clap = { version = "4", features = ["derive", "env"] }
|
||||
dotenv = { version = "0.15" }
|
||||
dotenvy = { version = "0.15.7" }
|
||||
|
@@ -17,7 +17,7 @@ tokio.workspace = true
|
||||
tracing.workspace = true
|
||||
tracing-subscriber.workspace = true
|
||||
clap.workspace = true
|
||||
dotenv.workspace = true
|
||||
dotenvy.workspace = true
|
||||
|
||||
serde = { version = "1.0.197", features = ["derive"] }
|
||||
uuid = { version = "1.7.0", features = ["v4"] }
|
||||
|
@@ -79,6 +79,11 @@ impl Cache {
|
||||
tracing::debug!("cache has expired");
|
||||
return Ok(None);
|
||||
}
|
||||
|
||||
tracing::debug!(
|
||||
"cache is valid for: {} mins",
|
||||
cache_duration.saturating_sub(file_modified_last).as_secs() / 60
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -124,7 +124,7 @@ impl CacheDuration {
|
||||
impl Default for CacheDuration {
|
||||
fn default() -> Self {
|
||||
Self::Precise {
|
||||
days: 1,
|
||||
days: 7,
|
||||
hours: 0,
|
||||
minutes: 0,
|
||||
}
|
||||
|
@@ -36,6 +36,7 @@ impl InteractiveApp for &'static crate::app::App {
|
||||
}
|
||||
|
||||
mod app {
|
||||
use crossterm::event::KeyModifiers;
|
||||
use ratatui::{
|
||||
crossterm::event::{self, Event, KeyCode},
|
||||
layout::{Constraint, Layout},
|
||||
@@ -92,6 +93,12 @@ mod app {
|
||||
terminal.draw(|frame| self.draw(frame))?;
|
||||
|
||||
if let Event::Key(key) = event::read()? {
|
||||
if let KeyCode::Char('c') = key.code {
|
||||
if key.modifiers.contains(KeyModifiers::CONTROL) {
|
||||
return Ok(None);
|
||||
}
|
||||
}
|
||||
|
||||
match key.code {
|
||||
KeyCode::Char(letter) => {
|
||||
self.current_search.push(letter);
|
||||
|
@@ -57,7 +57,7 @@ const DEFAULT_CONFIG_PATH: &str = ".config/gitnow/gitnow.toml";
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> anyhow::Result<()> {
|
||||
dotenv::dotenv().ok();
|
||||
dotenvy::dotenv().ok();
|
||||
tracing_subscriber::fmt()
|
||||
.with_env_filter(
|
||||
EnvFilter::builder()
|
||||
|
@@ -6,6 +6,9 @@ vars:
|
||||
service: "gitnow"
|
||||
registry: kasperhermansen
|
||||
|
||||
rust:
|
||||
publish: {}
|
||||
|
||||
please:
|
||||
project:
|
||||
owner: kjuulh
|
||||
|
Reference in New Issue
Block a user