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
OpenDAS
dynamo
Commits
83da4edc
"git@developer.sourcefind.cn:OpenDAS/dynamo.git" did not exist on "441846de570911196b3e089c8e756207af72b0d6"
Unverified
Commit
83da4edc
authored
Apr 16, 2025
by
ishandhanani
Committed by
GitHub
Apr 16, 2025
Browse files
fix: cli version (#716)
parent
2034339b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
deploy/dynamo/sdk/src/dynamo/sdk/cli/cli.py
deploy/dynamo/sdk/src/dynamo/sdk/cli/cli.py
+4
-2
No files found.
deploy/dynamo/sdk/src/dynamo/sdk/cli/cli.py
View file @
83da4edc
...
...
@@ -17,12 +17,13 @@
from
__future__
import
annotations
import
importlib.metadata
import
click
import
psutil
def
create_bentoml_cli
()
->
click
.
Command
:
from
bentoml._internal.configuration
import
BENTOML_VERSION
from
bentoml._internal.context
import
server_context
# from bentoml_cli.cloud import cloud_command
...
...
@@ -40,11 +41,12 @@ def create_bentoml_cli() -> click.Command:
from
dynamo.sdk.cli.utils
import
DynamoCommandGroup
server_context
.
service_type
=
"cli"
dynamo_version
=
importlib
.
metadata
.
version
(
"ai-dynamo"
)
CONTEXT_SETTINGS
=
{
"help_option_names"
:
(
"-h"
,
"--help"
)}
@
click
.
group
(
cls
=
DynamoCommandGroup
,
context_settings
=
CONTEXT_SETTINGS
)
@
click
.
version_option
(
BENTOML_VERSION
,
"-v"
,
"--version"
)
@
click
.
version_option
(
dynamo_version
,
"-v"
,
"--version"
)
def
bentoml_cli
():
# TODO: to be renamed to something....
"""
The Dynamo CLI is a CLI for serving, containerizing, and deploying Dynamo applications.
...
...
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