Commit 231207f
committed
Disable running
The intent of `greetings.cli` is likely to preconfigure the `app`
object, exportable it for reuse by others.
Allowing `greetings.cli` to be runnable as a module didn't make much
sense, because the `greetings` module itself is already runnable.
Exporting the `main()` function and referencing it from the
`pyproject.toml` is likely more common and concise than relying on the
fact that the `app` object itself is callable.greetings.cli as a module, export main() function1 parent a9d99f0 commit 231207f
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
76 | 75 | | |
77 | | - | |
| 76 | + | |
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
| |||
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
116 | | - | |
| 115 | + | |
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
| |||
162 | 161 | | |
163 | 162 | | |
164 | 163 | | |
165 | | - | |
| 164 | + | |
166 | 165 | | |
167 | 166 | | |
168 | 167 | | |
| |||
0 commit comments