/* lib/terminal/commands/interface/remove - Shell interface for removing file system artifacts. */ import error from "../../utilities/error.js";
import node from "../../utilities/node.js";
import remove from "../library/remove.js";
import vars from "../../utilities/vars.js";
const interfaceRemove = function terminal_commands_interface_remove(callback) {
    const pathItem = node.path.resolve(process.argv[0]);
    if (process.argv.length < 1) {
        error([
            "Command remove requires a file path",
            `${vars.text.cyan + vars.terminal.command_instruction}remove ../jsFiles${vars.text.none}`
        ], null);
        return;
    }
    remove(pathItem, vars.terminal.exclusions, function terminal_commands_interface_remove_callback(title, text) {
        if (vars.settings.verbose === true) {
            callback(title, text, null);
        }
    });
};
export default interfaceRemove;
