mirror of
https://github.com/denisidoro/navi.git
synced 2026-07-28 12:36:40 +00:00
2.24.0 bump (#935)
This commit is contained in:
parent
586ad7f0a4
commit
5515367dc8
5 changed files with 19 additions and 7 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -432,7 +432,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "navi"
|
||||
version = "2.23.0"
|
||||
version = "2.24.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"clap",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
14
scripts/dot
14
scripts/dot
|
|
@ -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" "$@"
|
||||
|
|
|
|||
|
|
@ -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::*;
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue