From c85cd162175e19a3a62636a443d0f71bfd33c180 Mon Sep 17 00:00:00 2001 From: Andrew Voynov Date: Wed, 18 Dec 2024 18:34:05 +0300 Subject: [PATCH] chore(CLI): clarified `dx new` post-create message --- packages/cli/src/cli/create.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/cli/create.rs b/packages/cli/src/cli/create.rs index 913e5aa06f..36cca500fe 100644 --- a/packages/cli/src/cli/create.rs +++ b/packages/cli/src/cli/create.rs @@ -210,7 +210,18 @@ pub(crate) fn post_create(path: &Path) -> Result<()> { let mut file = std::fs::File::create(readme_path)?; file.write_all(new_readme.as_bytes())?; - tracing::info!(dx_src = ?TraceSrc::Dev, "Generated project at {}\n\n`cd` to your project and run `dx serve` to start developing.\nIf using Tailwind, make sure to run the Tailwind CLI.\nMore information is available in the generated `README.md`.\n\nBuild cool things! ✌️", path.display()); + tracing::info!( + dx_src = ?TraceSrc::Dev, + "Generated project at {}\n\ + \n\ + `cd` to your project and run `dx serve` (if you didn't choose to use Dioxus Fullstack\n\ + or `dx serve --platform ` if you did) to start developing.\n\ + If you are using Tailwind, make sure to run the Tailwind CLI.\n\ + More information is available in the generated `README.md`.\n\ + \n\ + Build cool things! ✌️", + path.display() + ); Ok(()) }