2.24.0 bump (#935)

This commit is contained in:
Denis Isidoro 2025-01-29 20:18:21 -03:00 committed by GitHub
parent 586ad7f0a4
commit 5515367dc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 19 additions and 7 deletions

2
Cargo.lock generated
View file

@ -432,7 +432,7 @@ dependencies = [
[[package]]
name = "navi"
version = "2.23.0"
version = "2.24.0"
dependencies = [
"anyhow",
"clap",

View file

@ -1,6 +1,6 @@
[package]
name = "navi"
version = "2.23.0"
version = "2.24.0"
authors = ["Denis Isidoro <denis_isidoro@live.com>"]
edition = "2021"
description = "An interactive cheatsheet tool for the command-line"
@ -53,4 +53,4 @@ path = "src/lib.rs"
[[bin]]
name = "navi"
path = "src/bin/main.rs"
bench = false
bench = false

View file

@ -8,7 +8,17 @@ export CARGO_PATH="${NAVI_HOME}/core/Cargo.toml"
# TODO: bump dotfiles + remove this fn
log::note() { log::info "$@"; }
export -f log::note
cargo() {
if [ "${1:-}" = "install" ] && [ "${2:-}" = "cross" ]; then
shift 2 || true
command cargo install cross --git https://github.com/cross-rs/cross "$@"
else
command cargo "$@"
fi
}
export -f log::note cargo
dot::clone() {
git clone 'https://github.com/denisidoro/dotfiles' "$DOTFILES"
@ -24,4 +34,4 @@ dot::clone_if_necessary() {
dot::clone_if_necessary
"${DOTFILES}/bin/dot" "$@"
"${DOTFILES}/bin/dot" "$@"

View file

@ -1,4 +1,4 @@
pub use crate::common::fs::{create_dir, exe_string, read_lines, remove_dir, InvalidPath, UnreadableDir};
pub use crate::common::fs::{create_dir, exe_string, read_lines, remove_dir};
use crate::env_var;
use crate::parser::Parser;
use crate::prelude::*;

View file

@ -254,7 +254,9 @@ impl<'a> Parser<'a> {
}
// duplicate
if !item.tags.is_empty() && !item.comment.is_empty() {}
if !item.tags.is_empty() {
item.comment.is_empty();
}
// blank
if line.is_empty() {
if !item.snippet.is_empty() {