From f62ac2fe3476ee47788b28e8ce1a60911ca0fbbb Mon Sep 17 00:00:00 2001 From: beffroi Date: Thu, 25 May 2023 16:58:32 +0200 Subject: [PATCH] Adds an extra line on the example message --- src/wrapper_functions.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/wrapper_functions.rs b/src/wrapper_functions.rs index 90d19e7..ea6a735 100644 --- a/src/wrapper_functions.rs +++ b/src/wrapper_functions.rs @@ -280,12 +280,17 @@ pub fn create_example(_cli: &Cli) -> Result<(), SnippetError> { let mut path = config_folder()?; path.push("unique_example.yaml"); println!( -"The snippet unique_example was created. You can use the following command to launch an editor and begin editing it: - $ snp unique_example -E +"The snippet unique_example was created. You can use the following command to launch an editor and begin editing the content of the example: + $ snp unique_example -e + +Note that only the content of the text is editable in this mode, to edit the whole snippet use: + $ snp unique_example -E Once you are done with the editing, you can try using the snippet with: $ snp unique_example - +or + $ snp unique_example random parameters separated by spaces + If you wish to delete the snippet, you can use the following command: $ snp -d unique_example" );