File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 74
74
name = "config" ,
75
75
help = "Set default config" ,
76
76
)
77
- # app.add_typer(
78
- # version.app,
79
- # name="version",
80
- # help="Show version",
81
- # )
77
+
78
+ app .add_typer (
79
+ version .app ,
80
+ name = "version" ,
81
+ help = "Show version" ,
82
+ )
83
+
82
84
@app .command (help = "List supported models" )
83
85
@catch_aws_credential_errors
84
86
def list_supported_models (model_id : Annotated [
@@ -105,6 +107,9 @@ def callback(ctx: typer.Context):
105
107
)
106
108
# Show main help
107
109
console .print (ctx .get_help ())
110
+ console .print (
111
+ " [dim]Further help: [link=https://github.com/aws-samples/easy-model-deployer/]https://github.com/aws-samples/easy-model-deployer/[/link][/dim]" ,
112
+ )
108
113
109
114
if __name__ == "__main__" :
110
115
bootstrap .bootstrap ()
Original file line number Diff line number Diff line change 1
- from emd .revision import VERSION
1
+ from emd .revision import VERSION , COMMIT_HASH
2
2
import typer
3
- from emd .utils .decorators import load_aws_profile , catch_aws_credential_errors , check_emd_env_exist
4
3
from emd .utils .logger_utils import make_layout
5
4
6
5
app = typer .Typer (pretty_exceptions_enable = False )
9
8
10
9
#@app.callback(invoke_without_command=True)(invoke_without_command=True)
11
10
@app .callback (invoke_without_command = True )
12
- @catch_aws_credential_errors
13
- @check_emd_env_exist
14
- @load_aws_profile
15
11
def version ():
16
- print (VERSION )
12
+ print (f"emd { VERSION } (build { COMMIT_HASH } )" )
You can’t perform that action at this time.
0 commit comments