chore: update package name

This commit is contained in:
Alexandre Pasmantier 2024-09-14 20:52:15 +02:00
parent 495a3f13af
commit e5e6f1f143
5 changed files with 9 additions and 9 deletions

2
Cargo.lock generated
View File

@ -296,7 +296,7 @@ dependencies = [
]
[[package]]
name = "grip-grab"
name = "grip-grep"
version = "0.3.0"
dependencies = [
"anyhow",

View File

@ -1,13 +1,13 @@
[package]
name = "grip-grab"
name = "grip-grep"
version = "0.3.0"
edition = "2021"
authors = ["Alexandre Pasmantier <alex.pasmant@gmail.com>"]
license = "Apache-2.0"
description = "A faster, more lightweight ripgrep alternative."
readme = "README.md"
homepage = "https://github.com/alexpasmantier/grip-grab"
repository = "https://github.com/alexpasmantier/grip-grab"
homepage = "https://github.com/alexpasmantier/grip-grep"
repository = "https://github.com/alexpasmantier/grip-grep"
keywords = ["cli", "search", "grep", "ripgrep", "rust"]
categories = [
"command-line-utilities",

View File

@ -1,5 +1,5 @@
# grip-grab (`gg`) 🧤
# grip-grep (`gg`) 🧤
A circumstantially faster, more lightweight, ripgrep-inspired alternative.
@ -14,10 +14,10 @@ https://github.com/user-attachments/assets/0bce247c-7a03-4f62-a29f-51da3c6a54b8
## Installation
### Using Cargo
```bash
cargo install grip-grab
cargo install grip-grep
```
**NOTE:** if using zsh with the `git` plugin, you might need to unalias `gg` in order for grip-grab's `gg` to work:
**NOTE:** if using zsh with the `git` plugin, you might need to unalias `gg` in order for grip-grep's `gg` to work:
```sh
echo 'unalias gg' >> ~/.zshrc
source ~/.zshrc

View File

@ -4,7 +4,7 @@ use crate::{printer::PrintMode, utils};
use clap::{ArgAction, Parser, Subcommand};
#[derive(Parser, Debug)]
#[command(name = "grip-grab")]
#[command(name = "grip-grep")]
#[command(bin_name = "gg")]
#[command(version, about = "A somewhat faster, more lightweight, ripgrep-inspired alternative.", long_about = None, arg_required_else_help=true)]
pub struct Cli {

View File

@ -17,7 +17,7 @@ pub fn upgrade_gg(force: bool) {
println!("└─────────────────────────────────────────┘\n");
let mut command = Command::new("cargo");
command.arg("install").arg("grip-grab");
command.arg("install").arg("grip-grep");
if force {
command.arg("--force");
}