aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/create_project_command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/command/create_project_command.rs')
-rw-r--r--crates/shirabe/src/command/create_project_command.rs33
1 files changed, 16 insertions, 17 deletions
diff --git a/crates/shirabe/src/command/create_project_command.rs b/crates/shirabe/src/command/create_project_command.rs
index abbf37a..8f01f98 100644
--- a/crates/shirabe/src/command/create_project_command.rs
+++ b/crates/shirabe/src/command/create_project_command.rs
@@ -1,22 +1,5 @@
//! ref: composer/src/Composer/Command/CreateProjectCommand.php
-use anyhow::Result;
-use indexmap::IndexMap;
-use shirabe_external_packages::composer::pcre::{CaptureKey, Preg};
-use shirabe_external_packages::seld::signal::SignalHandler;
-use shirabe_external_packages::symfony::console::command::command::Command;
-use shirabe_external_packages::symfony::console::input::InputInterface;
-use shirabe_external_packages::symfony::console::output::OutputInterface;
-use shirabe_external_packages::symfony::finder::Finder;
-use shirabe_php_shim::{
- DIRECTORY_SEPARATOR, InvalidArgumentException, PhpMixed, RuntimeException,
- UnexpectedValueException, array_pop, chdir, explode_with_limit, file_exists, getcwd, implode,
- is_dir, is_file, mkdir, realpath, rtrim, strtolower, unlink,
-};
-use std::cell::RefCell;
-use std::path::PathBuf;
-use std::rc::Rc;
-
use crate::advisory::Auditor;
use crate::command::base_command::base_command_initialize;
use crate::command::{BaseCommand, BaseCommandData};
@@ -49,6 +32,22 @@ use crate::script::ScriptEvents;
use crate::util::Filesystem;
use crate::util::Platform;
use crate::util::ProcessExecutor;
+use anyhow::Result;
+use indexmap::IndexMap;
+use shirabe_external_packages::composer::pcre::{CaptureKey, Preg};
+use shirabe_external_packages::seld::signal::SignalHandler;
+use shirabe_external_packages::symfony::console::command::command::Command;
+use shirabe_external_packages::symfony::console::input::InputInterface;
+use shirabe_external_packages::symfony::console::output::OutputInterface;
+use shirabe_external_packages::symfony::finder::Finder;
+use shirabe_php_shim::{
+ DIRECTORY_SEPARATOR, InvalidArgumentException, PhpMixed, RuntimeException,
+ UnexpectedValueException, array_pop, chdir, explode_with_limit, file_exists, getcwd, implode,
+ is_dir, is_file, mkdir, realpath, rtrim, strtolower, unlink,
+};
+use std::cell::RefCell;
+use std::path::PathBuf;
+use std::rc::Rc;
/// Install a package as new project into new directory.
#[derive(Debug)]