Skip to content

Commit

Permalink
Rename modules to rip2
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Apr 8, 2024
1 parent cc0f085 commit 708c7ad
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
edition = '2021'
name = "rip"
name = "rip2"
version = "0.1.0"
authors = ["[email protected]", "[email protected]", "[email protected]"]
description = "rip: a safe and ergonomic alternative to rm"
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use clap::{CommandFactory, Parser, ValueEnum};
use clap_complete::{generate, Shell};
use clap_complete_nushell::Nushell;

use rip::{args, util};
use rip2::{args, util};
use std::io::stdout;
use std::process::ExitCode;

Expand All @@ -23,7 +23,7 @@ fn main() -> ExitCode {
return ExitCode::SUCCESS;
}

if let Err(ref e) = rip::run(cli, util::ProductionMode) {
if let Err(ref e) = rip2::run(cli, util::ProductionMode) {
println!("Exception: {}", e);
return ExitCode::FAILURE;
}
Expand Down
14 changes: 7 additions & 7 deletions tests/integration_tests.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use rand::distributions::Alphanumeric;
use rand::Rng;
use rip::args::Args;
use rip::{self, util};
use rip2::args::Args;
use rip2::{self, util};
use rstest::rstest;
use std::env;
use std::fs::{self, File};
Expand Down Expand Up @@ -89,7 +89,7 @@ fn test_bury_unbury(#[case] decompose: bool, #[case] inspect: bool) {
let expected_graveyard_path =
util::join_absolute(&test_env.graveyard, test_data.path.canonicalize().unwrap());

rip::run(
rip2::run(
Args {
targets: [test_data.path.clone()].to_vec(),
graveyard: Some(test_env.graveyard.clone()),
Expand All @@ -111,7 +111,7 @@ fn test_bury_unbury(#[case] decompose: bool, #[case] inspect: bool) {
let restored_data_from_grave = fs::read_to_string(&expected_graveyard_path).unwrap();
assert_eq!(restored_data_from_grave, test_data.data);

rip::run(
rip2::run(
Args {
graveyard: Some(test_env.graveyard.clone()),
decompose,
Expand Down Expand Up @@ -184,7 +184,7 @@ fn test_env(#[case] env_var: &str) {
let graveyard = test_env.graveyard.clone();
env::set_var(env_var, graveyard);

rip::run(
rip2::run(
Args {
targets: [test_data.path.clone()].to_vec(),
// We don't set the graveyard here!
Expand Down Expand Up @@ -221,7 +221,7 @@ fn test_duplicate_file(#[case] in_folder: bool) {
let expected_graveyard_path1 =
util::join_absolute(&test_env.graveyard, test_data1.path.canonicalize().unwrap());

rip::run(
rip2::run(
Args {
targets: [if in_folder {
test_data1.path.parent().unwrap().to_path_buf()
Expand Down Expand Up @@ -264,7 +264,7 @@ fn test_duplicate_file(#[case] in_folder: bool) {
}),
);

rip::run(
rip2::run(
Args {
targets: [if in_folder {
test_data2.path.parent().unwrap().to_path_buf()
Expand Down

0 comments on commit 708c7ad

Please sign in to comment.