Skip to content

Commit 04e36b6

Browse files
authored
Merge pull request #73 from python-ellar/scaffold_hint_update
scaffold file hint updates
2 parents b8ac091 + 1a8028d commit 04e36b6

File tree

5 files changed

+4
-11
lines changed

5 files changed

+4
-11
lines changed

ellar_cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Ellar CLI Tool for Scaffolding Ellar Projects, Modules and also running Ellar Commands"""
22

3-
__version__ = "0.3.6"
3+
__version__ = "0.3.7"

ellar_cli/scaffolding/module_template/module_name/controllers.ellar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Define endpoints routes in python class-based fashion
33
example:
44

5-
@Controller("/dogs", tag="Dogs", description="Dogs Resources")
5+
@Controller("/dogs", name="Dogs")
66
class MyController(ControllerBase):
77
@get('/')
88
def index(self):

ellar_cli/scaffolding/module_template/module_name/module.ellar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
routers=(routerA, routerB)
1010
statics='statics',
1111
template='template_folder',
12-
# base_directory -> default is the `{{module_name}}` folder
12+
base_directory=`default is the `{{module_name}}` folder`
1313
)
1414
class MyModule(ModuleBase):
1515
def register_providers(self, container: Container) -> None:

ellar_cli/scaffolding/module_template/module_name/routers.ellar

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
Define endpoints routes in python function fashion
33
example:
44

5-
my_router = ModuleRouter("/cats", tag="Cats", description="Cats Resource description")
5+
my_router = ModuleRouter("/cats", name="Cats")
66

77
@my_router.get('/')
88
def index(request: Request):
99
return {'detail': 'Welcome to Cats Resource'}
1010
"""
1111

1212
from ellar.common import ModuleRouter
13-

ellar_cli/scaffolding/module_template/module_name/schemas.ellar

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,5 @@ class ASampleDTO(Serializer):
66
name: str
77
age: t.Optional[int] = None
88

9-
for dataclasses, Inherit from DataclassSerializer
10-
11-
@dataclass
12-
class ASampleDTO(DataclassSerializer):
13-
name: str
14-
age: t.Optional[int] = None
159
"""
1610
from ellar.common import Serializer

0 commit comments

Comments
 (0)