quizzes: Use complete sentences with punctation for prompts
authorW. Trevor King <wking@tremily.us>
Wed, 6 Feb 2013 17:45:51 +0000 (12:45 -0500)
committerW. Trevor King <wking@tremily.us>
Wed, 6 Feb 2013 17:45:55 +0000 (12:45 -0500)
This makes multi-sentence prompts less awkward.

quizzes/git.json
quizzes/posix-shell.json
quizzes/posix-utilities.json

index ba5dd8f970afd144805998708193a60f59ddbfb2..3d2f0ccf08fef81864b7c67dab195550796bda0b 100644 (file)
@@ -5,7 +5,7 @@
                        "class": "ScriptQuestion",
                        "interpreter": "sh",
                        "id": "git config --global user.name",
-                       "prompt": "configure your user-wide name to be `A U Thor`",
+                       "prompt": "Configure your user-wide name to be `A U Thor`.",
                        "answer": "git config --global user.name 'A U Thor'",
                        "setup": [
                                        "export HOME=."
@@ -22,7 +22,7 @@
                        "class": "ScriptQuestion",
                        "interpreter": "sh",
                        "id": "git config --global user.email",
-                       "prompt": "configure your user-wide email to be `author@example.com`",
+                       "prompt": "Configure your user-wide email to be `author@example.com`.",
                        "answer": "git config --global user.email 'author@example.com'",
                        "setup": [
                                        "export HOME=."
@@ -39,7 +39,7 @@
                        "class": "ScriptQuestion",
                        "interpreter": "sh",
                        "id": "git init",
-                       "prompt": "initialize a Git repository in a new `my-project` directory",
+                       "prompt": "Initialize a Git repository in a new `my-project` directory.",
                        "multiline": true,
                        "answer": [
                                        "mkdir my-project",
@@ -58,7 +58,7 @@
                        "class": "ScriptQuestion",
                        "interpreter": "sh",
                        "id": "git clone",
-                       "prompt": "clone git://github.com/wking/quizzer.git into a new `quizzer` directory",
+                       "prompt": "Clone git://github.com/wking/quizzer.git into a new `quizzer` directory.",
                        "answer": "git clone git://github.com/wking/quizzer.git",
                        "teardown": [
                                "cd quizzer",
@@ -73,7 +73,7 @@
                        "class": "ScriptQuestion",
                        "interpreter": "sh",
                        "id": "git add / commit",
-                       "prompt": "there is a new README file in your repository.\nmake a new commit including this README.\nthe commit message should be `Add a README`",
+                       "prompt": "There is a new README file in your repository.\nMake a new commit including this README.\nThe commit message should be `Add a README`.",
                        "multiline": true,
                        "timeout": null,
                        "answer": [
                        "class": "ScriptQuestion",
                        "interpreter": "sh",
                        "id": "git checkout HEAD -- FILE",
-                       "prompt": "you've messed up your README file.\nrestore it to the last committed version",
+                       "prompt": "You've messed up your README file.\nRestore it to the last committed version.",
                        "answer": "git checkout HEAD -- README",
                        "setup": [
                                "export GIT_AUTHOR_NAME='A U Thor'",
                        "class": "ScriptQuestion",
                        "interpreter": "sh",
                        "id": "git commit --amend",
-                       "prompt": "you messed up your README file in your last commit.\nyou just fixed the contents of `README`, but haven't added it to the index.\ncommit the new version so it also fixes the last commit.\nthe fixed commit message should be `Add a README`.",
+                       "prompt": "You messed up your README file in your last commit.\nYou just fixed the contents of `README`, but haven't added it to the index.\nCommit the new version so it also fixes the last commit.\nThe fixed commit message should be `Add a README`.",
                        "multiline": true,
                        "timeout": null,
                        "answer": [
index e0693f725b56e448b9d26a270a054f3419253b3e..96d8a59894f6ba320c0f725cd6c5f31545a2e1fd 100644 (file)
@@ -5,7 +5,7 @@
                        "class": "ScriptQuestion",
                        "interpreter": "sh",
                        "id": "quoting spaces",
-                       "prompt": "call `ls` and pass it two arguments: `a` and `b c`",
+                       "prompt": "Call `ls` and pass it two arguments: `a` and `b c`.",
                        "answer": "ls a 'b c'",
                        "help": "http://pubs.opengroup.org/onlinepubs/009696699/utilities/xcu_chap02.html#tag_02_02"
                },
@@ -13,7 +13,7 @@
                        "class": "ScriptQuestion",
                        "interpreter": "sh",
                        "id": "echo constant",
-                       "prompt": "print the string `hello, world` to stdout",
+                       "prompt": "Print the string `hello, world` to stdout.",
                        "answer": "echo 'hello, world'",
                        "help": "http://pubs.opengroup.org/onlinepubs/009696699/utilities/echo.html"
                },
@@ -21,7 +21,7 @@
                        "class": "ScriptQuestion",
                        "interpreter": "sh",
                        "id": "parameter expansion",
-                       "prompt": "print the contents of the PATH variable to stdout",
+                       "prompt": "Print the contents of the PATH variable to stdout.",
                        "answer": "echo \"$PATH\"",
                        "help": "http://pubs.opengroup.org/onlinepubs/009696699/utilities/xcu_chap02.html#tag_02_06_02",
                        "dependencies": [
@@ -32,7 +32,7 @@
                        "class": "ScriptQuestion",
                        "interpreter": "sh",
                        "id": "variable assign constant",
-                       "prompt": "set the ABC variable to the string `xyz`",
+                       "prompt": "Set the ABC variable to the string `xyz`.",
                        "answer": "ABC='xyz'",
                        "teardown": [
                                "echo \"ABC: '${ABC}'\""
@@ -42,7 +42,7 @@
                {
                        "class": "ScriptQuestion",
                        "interpreter": "sh",
-                       "prompt": "prepend the string `/some/path:` to the PATH variable",
+                       "prompt": "Prepend the string `/some/path:` to the PATH variable.",
                        "answer": "PATH=\"/some/path:$PATH\"",
                        "teardown": [
                                "echo \"PATH: '${PATH}'\""
index 43c30afef5d5aa1107349bd4004dcd06ba1fd417..800fec5166ec468242bc72776b7d07e1f1c5c832 100644 (file)
@@ -4,7 +4,7 @@
                {
                        "class": "ScriptQuestion",
                        "interpreter": "sh",
-                       "prompt": "list all the files in the current directory",
+                       "prompt": "List all the files in the current directory.",
                        "answer": "ls",
                        "setup": [
                                "touch file-1 file-2 file-3"
                {
                        "class": "ScriptQuestion",
                        "interpreter": "sh",
-                       "prompt": "print the current directory to stdout",
+                       "prompt": "Print the current directory to stdout.",
                        "answer": "pwd",
                        "help": "http://pubs.opengroup.org/onlinepubs/009696699/idx/utilities.html"
                },
                {
                        "class": "ScriptQuestion",
                        "interpreter": "sh",
-                       "prompt": "change to your home directory",
+                       "prompt": "Change to your home directory.",
                        "answer": "cd",
                        "teardown": [
                                "pwd"
@@ -31,7 +31,7 @@
                {
                        "class": "ScriptQuestion",
                        "interpreter": "sh",
-                       "prompt": "change to the parent of your current working directory",
+                       "prompt": "Change to the parent of your current working directory.",
                        "answer": "cd ..",
                        "teardown": [
                                "pwd"
@@ -44,7 +44,7 @@
                {
                        "class": "ScriptQuestion",
                        "interpreter": "sh",
-                       "prompt": "print the contents of README file to the terminal",
+                       "prompt": "Print the contents of README file to the terminal.",
                        "answer": "cat README",
                        "setup": [
                                "echo 'This project is wonderful' > README"