From 89168be3d8560170e9ad09f22521f69d47c3f368 Mon Sep 17 00:00:00 2001 From: Faruk Date: Mon, 19 Aug 2024 15:47:14 +0200 Subject: [PATCH 1/5] add messages when creating and copying files --- copier.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/copier.yml b/copier.yml index 4bada3f3..f01d8374 100644 --- a/copier.yml +++ b/copier.yml @@ -60,3 +60,34 @@ repository_url: # Optional questions + + +# user messages + +_message_after_copy: | + Your project "{{ package_name }}" has been created successfully! + + Next steps: + + 1. Change directory to the project root: + + $ cd {{ _copier_conf.dst_path }} + + 2. Read ("{{ package_name }}"/next_steps.md) which contains information on next steps. + +_message_after_update: | + Your project "{{ package_name }}" has been updated successfully! + In case there are any conflicts, please resolve them. Then, + you're done. + +_message_before_copy: | + Thanks for generating a project using our template. + + You'll be asked a series of questions whose answers will be used to + generate a tailored project for you. + +_message_before_update: | + Thanks for updating your project using our template. + + You'll be asked a series of questions whose answers are pre-populated + with previously entered values. Feel free to change them as needed. From a4218b5be5e1804418c7a44ece80195b658a8296 Mon Sep 17 00:00:00 2001 From: Faruk Date: Mon, 19 Aug 2024 15:47:44 +0200 Subject: [PATCH 2/5] add messages when creating and copying files --- copier.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/copier.yml b/copier.yml index f01d8374..086e1b4d 100644 --- a/copier.yml +++ b/copier.yml @@ -64,6 +64,12 @@ repository_url: # user messages +_message_before_copy: | + Thanks for generating a project using our template. + + You'll be asked a series of questions whose answers will be used to + generate a tailored project for you. + _message_after_copy: | Your project "{{ package_name }}" has been created successfully! @@ -75,19 +81,13 @@ _message_after_copy: | 2. Read ("{{ package_name }}"/next_steps.md) which contains information on next steps. -_message_after_update: | - Your project "{{ package_name }}" has been updated successfully! - In case there are any conflicts, please resolve them. Then, - you're done. - -_message_before_copy: | - Thanks for generating a project using our template. - - You'll be asked a series of questions whose answers will be used to - generate a tailored project for you. - _message_before_update: | Thanks for updating your project using our template. You'll be asked a series of questions whose answers are pre-populated with previously entered values. Feel free to change them as needed. + +_message_after_update: | + Your project "{{ package_name }}" has been updated successfully! + In case there are any conflicts, please resolve them. Then, + you're done. From f31c6eb9c18c95be302fefabb26007c1a16b12f0 Mon Sep 17 00:00:00 2001 From: "Faruk D." Date: Mon, 19 Aug 2024 16:24:27 +0200 Subject: [PATCH 3/5] remove double quotes --- copier.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copier.yml b/copier.yml index 086e1b4d..c8e10a97 100644 --- a/copier.yml +++ b/copier.yml @@ -79,7 +79,7 @@ _message_after_copy: | $ cd {{ _copier_conf.dst_path }} - 2. Read ("{{ package_name }}"/next_steps.md) which contains information on next steps. + 2. Read ({{ package_name }}/next_steps.md) which contains information on next steps. _message_before_update: | Thanks for updating your project using our template. From 03bb88704d748b46328214137f095052d3993579 Mon Sep 17 00:00:00 2001 From: "Faruk D." Date: Mon, 19 Aug 2024 16:30:37 +0200 Subject: [PATCH 4/5] update the patch in before copy message --- copier.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copier.yml b/copier.yml index c8e10a97..23b2ebf8 100644 --- a/copier.yml +++ b/copier.yml @@ -79,7 +79,7 @@ _message_after_copy: | $ cd {{ _copier_conf.dst_path }} - 2. Read ({{ package_name }}/next_steps.md) which contains information on next steps. + 2. Read ({{ _copier_conf.dst_path }}/next_steps.md) which contains information on next steps. _message_before_update: | Thanks for updating your project using our template. From d711d6a16c3c3e4c4ac38e06959e4882996da072 Mon Sep 17 00:00:00 2001 From: "Faruk D." Date: Mon, 19 Aug 2024 16:32:53 +0200 Subject: [PATCH 5/5] update the patch in before copy message --- copier.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copier.yml b/copier.yml index 23b2ebf8..7deaed02 100644 --- a/copier.yml +++ b/copier.yml @@ -79,7 +79,7 @@ _message_after_copy: | $ cd {{ _copier_conf.dst_path }} - 2. Read ({{ _copier_conf.dst_path }}/next_steps.md) which contains information on next steps. + 2. Read next_steps.md which contains information on next steps. _message_before_update: | Thanks for updating your project using our template.