File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
src/fastapi_fastkit/utils Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 8
8
<a href =" https://pypi.org/project/fastapi-fastkit " target =" _blank " >
9
9
<img src="https://img.shields.io/pypi/v/fastapi-fastkit" alt="PyPI - Version">
10
10
</a >
11
- <a href =" https://img.shields.io/github/v/release/ bnbong/FastAPI-fastkit " target =" _blank " >
11
+ <a href =" https://github.com/ bnbong/FastAPI-fastkit/releases " target =" _blank " >
12
12
<img src="https://img.shields.io/github/v/release/bnbong/FastAPI-fastkit" alt="GitHub Release">
13
13
</a >
14
14
</p >
@@ -100,7 +100,7 @@ Installing dependencies...
100
100
╭───────────────────────────────────────────────────────────────────── Info ─────────────────────────────────────────────────────────────────────╮
101
101
│ ℹ To activate the virtual environment, run: │
102
102
│ │
103
- │ source /<new-venv-path>/venv/bin/activate │
103
+ │ source /<new-venv-path>/venv/bin/activate │
104
104
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
105
105
```
106
106
@@ -137,7 +137,7 @@ FastAPI template project will deploy at '<your-project-path>'
137
137
138
138
╭─────────────────────────────────────────────────────────────────── Success ────────────────────────────────────────────────────────────────────╮
139
139
│ ✨ FastAPI project '<your-project-name>' from 'fastapi-default' has been created and saved to │
140
- │ <your-project-path>! │
140
+ │ <your-project-path>! │
141
141
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
142
142
```
143
143
Original file line number Diff line number Diff line change 7
7
# @author bnbong
8
8
# --------------------------------------------------------------------------
9
9
import subprocess
10
+ import sys
10
11
from pathlib import Path
11
12
from typing import Any , Dict , List
12
13
@@ -114,3 +115,13 @@ def inspect_template(template_path: str) -> Dict[str, Any | List[str]]:
114
115
"errors" : inspector .errors ,
115
116
"warnings" : inspector .warnings ,
116
117
}
118
+
119
+
120
+ if __name__ == "__main__" :
121
+ if len (sys .argv ) != 2 :
122
+ print ("Usage: python inspector.py <template_dir>" )
123
+ sys .exit (1 )
124
+
125
+ template_dir = sys .argv [1 ]
126
+ result = inspect_template (template_dir )
127
+ print (result )
You can’t perform that action at this time.
0 commit comments