Skip to content

Commit

Permalink
Move copy function to core
Browse files Browse the repository at this point in the history
  • Loading branch information
andriygm committed Jul 16, 2024
1 parent 794a7a5 commit 912c468
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 12 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.

12 changes: 5 additions & 7 deletions cli/src/fill.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
use std::{collections::HashMap, path::PathBuf, process::exit, time::Instant};

use colored::Colorize;
use spackle::{
core::{
config::Config,
hook::{self, HookResult},
slot, template,
},
util::copy,
use spackle::core::{
config::Config,
copy,
hook::{self, HookResult},
slot, template,
};

use crate::Cli;
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions src/core/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pub mod config;
pub mod copy;
pub mod hook;
pub mod slot;
pub mod template;
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
use core::{
config::{self},
copy,
hook::{self, HookResult},
template,
};
use std::{collections::HashMap, os::unix, path::PathBuf};

use users::User;
use util::copy;
use walkdir::WalkDir;

pub mod core;
pub mod util;

#[derive(Debug)]
pub enum Error {
Expand Down
1 change: 0 additions & 1 deletion src/util/mod.rs

This file was deleted.

2 changes: 1 addition & 1 deletion tests/copy.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{collections::HashMap, fs};

use spackle::util::copy;
use spackle::core::copy;
use tempdir::TempDir;

#[test]
Expand Down

0 comments on commit 912c468

Please sign in to comment.