Compare commits
1 Commits
renovate/r
...
cuddle-ple
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2880ce3466 |
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.3.6] - 2025-03-06
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- *(deps)* update rust crate bytes to v1.10.1
|
||||||
|
|
||||||
## [0.3.5] - 2025-03-04
|
## [0.3.5] - 2025-03-04
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
1474
Cargo.lock
generated
1474
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -3,7 +3,7 @@ members = ["crates/*"]
|
|||||||
resolver = "2"
|
resolver = "2"
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "0.3.5"
|
version = "0.3.6"
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
# Git Now
|
# Git Now
|
||||||
|
|
||||||
> https://gitnow.kjuulh.io/
|
|
||||||
|
|
||||||
Git Now is a utility for easily navigating git projects from common upstream providers. Search, Download, and Enter projects as quickly as you can type.
|
Git Now is a utility for easily navigating git projects from common upstream providers. Search, Download, and Enter projects as quickly as you can type.
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "gitnow"
|
name = "gitnow"
|
||||||
description = "Git Now is a utility for easily navigating git projects from common upstream providers. Search, Download, and Enter projects as quickly as you can type."
|
description = "Git Now is a utility for easily navigating git projects from common upstream providers. Search, Download, and Enter projects as quickly as you can type."
|
||||||
edition = "2024"
|
edition = "2021"
|
||||||
readme = "../../README.md"
|
readme = "../../README.md"
|
||||||
repository = "https://github.com/kjuulh/gitnow"
|
repository = "https://github.com/kjuulh/gitnow"
|
||||||
homepage = "https://gitnow-client.prod.kjuulh.app"
|
homepage = "https://gitnow-client.prod.kjuulh.app"
|
||||||
|
|||||||
@@ -3,16 +3,18 @@ use std::time::Duration;
|
|||||||
use crossterm::event::{EventStream, KeyCode};
|
use crossterm::event::{EventStream, KeyCode};
|
||||||
use futures::{FutureExt, StreamExt};
|
use futures::{FutureExt, StreamExt};
|
||||||
use ratatui::{
|
use ratatui::{
|
||||||
TerminalOptions, Viewport, crossterm,
|
crossterm,
|
||||||
prelude::*,
|
prelude::*,
|
||||||
widgets::{Block, Padding},
|
widgets::{Block, Padding},
|
||||||
|
TerminalOptions, Viewport,
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::components::BatchCommand;
|
use crate::components::BatchCommand;
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
Dispatch, IntoCommand, Msg, Receiver, create_dispatch,
|
create_dispatch,
|
||||||
spinner::{Spinner, SpinnerState},
|
spinner::{Spinner, SpinnerState},
|
||||||
|
Dispatch, IntoCommand, Msg, Receiver,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub struct InlineCommand {
|
pub struct InlineCommand {
|
||||||
@@ -118,7 +120,7 @@ impl InlineCommand {
|
|||||||
return Ok(true);
|
return Ok(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut cmd = self.update_state(msg);
|
let mut cmd = self.update_state(&msg);
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
let msg = cmd.into_command().execute(dispatch);
|
let msg = cmd.into_command().execute(dispatch);
|
||||||
@@ -126,7 +128,7 @@ impl InlineCommand {
|
|||||||
match msg {
|
match msg {
|
||||||
Some(Msg::Quit) => return Ok(true),
|
Some(Msg::Quit) => return Ok(true),
|
||||||
Some(msg) => {
|
Some(msg) => {
|
||||||
cmd = self.update_state(msg);
|
cmd = self.update_state(&msg);
|
||||||
}
|
}
|
||||||
None => break,
|
None => break,
|
||||||
}
|
}
|
||||||
@@ -161,7 +163,7 @@ impl InlineCommand {
|
|||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
||||||
fn update_state(&mut self, msg: Msg) -> impl IntoCommand {
|
fn update_state(&mut self, msg: &Msg) -> impl IntoCommand {
|
||||||
tracing::debug!("handling message: {:?}", msg);
|
tracing::debug!("handling message: {:?}", msg);
|
||||||
|
|
||||||
let mut batch = BatchCommand::default();
|
let mut batch = BatchCommand::default();
|
||||||
@@ -176,7 +178,7 @@ impl InlineCommand {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
batch.with(self.spinner.update(&msg));
|
batch.with(self.spinner.update(msg));
|
||||||
|
|
||||||
batch.into_command()
|
batch.into_command()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ impl CacheDuration {
|
|||||||
hours,
|
hours,
|
||||||
minutes,
|
minutes,
|
||||||
} => Some(
|
} => Some(
|
||||||
std::time::Duration::from_hours(*days * 24)
|
std::time::Duration::from_days(*days)
|
||||||
+ std::time::Duration::from_hours(*hours)
|
+ std::time::Duration::from_hours(*hours)
|
||||||
+ std::time::Duration::from_mins(*minutes),
|
+ std::time::Duration::from_mins(*minutes),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
#![feature(duration_constructors)]
|
||||||
|
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
use anyhow::Context;
|
use anyhow::Context;
|
||||||
|
|||||||
Reference in New Issue
Block a user