You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/hyperpod_cli/commands/job.py
+29-1Lines changed: 29 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@
19
19
importsys
20
20
importsubprocess
21
21
fromtypingimportAny, Dict, Optional, List
22
+
fromtabulateimporttabulate
22
23
23
24
importclick
24
25
importyaml
@@ -40,6 +41,7 @@
40
41
SAGEMAKER_QUOTA_ALLOCATION_LABEL,
41
42
JobPatchType,
42
43
SAGEMAKER_TRAINING_LAUNCHER_DIR,
44
+
OutputFormat,
43
45
PullPolicy,
44
46
RestartPolicy,
45
47
PersistentVolumeClaim,
@@ -170,6 +172,13 @@ def get_job(
170
172
required=False,
171
173
help="Optional. A label selector to filter the listed jobs. The selector supports the '=', '==', and '!=' operators (e.g., `-l key1=value1,key2=value2`).",
172
174
)
175
+
@click.option(
176
+
"--output",
177
+
type=click.Choice([c.valueforcinOutputFormat]),
178
+
required=False,
179
+
default=OutputFormat.JSON.value,
180
+
help="Optional. The output format. Available values are `TABLE` and `JSON`. The default value is `JSON`.",
0 commit comments