Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
343e55da
Unverified
Commit
343e55da
authored
Nov 29, 2024
by
Antoine Kaufmann
Browse files
symphony/cli: add main() function to __main__ for pyproject.toml entrypoint
parent
0edf10fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
symphony/cli/simbricks/cli/__main__.py
symphony/cli/simbricks/cli/__main__.py
+5
-2
No files found.
symphony/cli/simbricks/cli/__main__.py
View file @
343e55da
...
@@ -33,10 +33,13 @@ app.add_typer(audit.app, name="audit")
...
@@ -33,10 +33,13 @@ app.add_typer(audit.app, name="audit")
@
app
.
callback
()
@
app
.
callback
()
@
async_cli
()
@
async_cli
()
async
def
main
(
async
def
a
main
(
ns
:
Annotated
[
str
,
Option
(
help
=
'Namespace to operate in.'
)]
=
'foo/bar/baz'
,
ns
:
Annotated
[
str
,
Option
(
help
=
'Namespace to operate in.'
)]
=
'foo/bar/baz'
,
):
):
state
.
namespace
=
ns
state
.
namespace
=
ns
def
main
():
app
()
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
app
()
main
()
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment