Skip to content

Commit

Permalink
test(config): finish
Browse files Browse the repository at this point in the history
  • Loading branch information
beeb committed Aug 22, 2024
1 parent 9d0b406 commit 0286a7c
Show file tree
Hide file tree
Showing 4 changed files with 230 additions and 1,012 deletions.
3 changes: 2 additions & 1 deletion src/commands/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ use std::fs;

use super::Result;
use crate::{
config::{add_to_config, get_config_path, read_soldeer_config, remove_forge_lib},
config::{add_to_config, get_config_path, read_soldeer_config},
install::{ensure_dependencies_dir, install_dependency, Progress},
lock::add_to_lockfile,
registry::get_latest_forge_std,
remappings::add_to_remappings,
utils::remove_forge_lib,
PROJECT_ROOT,
};
use clap::Parser;
Expand Down
4 changes: 2 additions & 2 deletions src/commands/uninstall.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use super::Result;
use crate::{
config::{delete_config, get_config_path, read_soldeer_config},
config::{delete_from_config, get_config_path, read_soldeer_config},
download::delete_dependency_files_sync,
lock::remove_lock,
remappings::remove_from_remappings,
Expand All @@ -23,7 +23,7 @@ pub(crate) fn uninstall_command(cmd: &Uninstall) -> Result<()> {
success("Done reading config")?;

// delete from the config file and return the dependency
let dependency = delete_config(&cmd.dependency, &config_path)?;
let dependency = delete_from_config(&cmd.dependency, &config_path)?;
success("Dependency removed from config file")?;

// deleting the files
Expand Down
Loading

0 comments on commit 0286a7c

Please sign in to comment.