diff --git a/CLI/teacher.py b/CLI/teacher.py index 5330ded..0bbd7f3 100644 --- a/CLI/teacher.py +++ b/CLI/teacher.py @@ -164,6 +164,7 @@ class Teacher: os.mkdir(self.username + "/" + c) print("Updated: " + c) command("touch " + self.username + "/" + c + "/README.md") + os.makedirs(self.username + "/Students/" + c) else: os.makedirs(self.username + "/Students") @@ -298,6 +299,7 @@ class Teacher: os.mkdir(path) f = open(path + "/README.md", "w") f.close() + os.makedirs(self.username + "/Students/" + cname) # push to remote repo # os.chdir(path) # for a in assignments: diff --git a/docs/source/cli.rst b/docs/source/cli.rst index 60d948e..23c9ed8 100644 --- a/docs/source/cli.rst +++ b/docs/source/cli.rst @@ -38,7 +38,10 @@ You will then be given the choice to select an existing class, Make a new class, 1. Making a new class: ------- -Select 'Make a New Class'. You will then be prompted to enter a class name. The format for every class must be _ (Example: Art12_eharris1). +Select 'Make a New Class'. You will then be prompted to enter a class name. The format for every class must be _ (Example: Art12_eharris1). +Enter Period (must be a positive integer). You will then be prompted to add students. If you have a list of students, enter the relative path of a text file with the student usernames. +The file must be a .txt file and have one student username per line. If you add an individual student, simply enter their ion username. +one username per line. ? Select class: (Use arrow keys) Art12_eharris1 @@ -47,6 +50,17 @@ Select 'Make a New Class'. You will then be prompted to enter a class name. The ❯ Make New Class Exit SkoolOS +? Add Students): (Use arrow keys) + ❯ 1) Add individual student + 2) Add list of students through path + 3) Exit + +? Add Students): 2) Add list of students through path +File must be .txt and have 1 student username per line +Relative Path: students.txt + + + diff --git a/eharris1/Civ_eharris1/README.md b/eharris1/Civ_eharris1/README.md new file mode 100644 index 0000000..e69de29 diff --git a/eharris1/Random_eharris1/README.md b/eharris1/Random_eharris1/README.md new file mode 100644 index 0000000..e69de29 diff --git a/students.txt b/students.txt index 80bb6da..60898ab 100644 --- a/students.txt +++ b/students.txt @@ -1 +1,2 @@ -2022rkhondak \ No newline at end of file +2022rkhondak +2023rmama \ No newline at end of file