This commit is contained in:
Raffu Khondaker 2020-06-16 21:41:48 -04:00
parent 00409c5cda
commit e28cd56f53
5 changed files with 19 additions and 2 deletions
CLI
docs/source
eharris1
Civ_eharris1
Random_eharris1
students.txt

View File

@ -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:

View File

@ -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 <subject>_<teacher_username> (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 <subject>_<teacher_username> (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

View File

View File

View File

@ -1 +1,2 @@
2022rkhondak
2022rkhondak
2023rmama