重构现代化 FastAPI 后端项目框架
This commit is contained in:
15
scripts/restore_project.py
Normal file
15
scripts/restore_project.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import sys
|
||||
from tjnetwork import *
|
||||
|
||||
def main():
|
||||
if len(sys.argv) != 2:
|
||||
print("restore_project name")
|
||||
return
|
||||
|
||||
p = sys.argv[1]
|
||||
open_project(p)
|
||||
restore(p)
|
||||
close_project(p)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user