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/scenarios/shared/precommands.py
+60-20Lines changed: 60 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -19,14 +19,16 @@
19
19
PUBLISH='publish'
20
20
CROSSGEN='crossgen'
21
21
CROSSGEN2='crossgen2'
22
+
EXTRACT='extract'
22
23
DEBUG='Debug'
23
24
RELEASE='Release'
24
25
25
26
OPERATIONS= (DEFAULT,
26
27
BUILD,
27
28
PUBLISH,
28
29
CROSSGEN,
29
-
CROSSGEN2
30
+
CROSSGEN2,
31
+
EXTRACT
30
32
)
31
33
32
34
classPreCommands:
@@ -46,12 +48,30 @@ def __init__(self):
46
48
47
49
default_parser=subparsers.add_parser(DEFAULT, help='Default operation (placeholder command and no specific operation will be executed)' )
48
50
self.add_common_arguments(default_parser)
51
+
52
+
extract_parser=subparsers.add_parser(EXTRACT, help='Used for local runs that extract the binaries to be run from a zip file. Requires a path to the zip' )
53
+
self.add_common_arguments(extract_parser)
54
+
extract_parser.add_argument('-p', '--pathtozip',
55
+
dest='pathtozip',
56
+
metavar='pathtozip',
57
+
help='Path to the zip file to extract',
58
+
required=True)
49
59
50
60
build_parser=subparsers.add_parser(BUILD, help='Builds the project')
51
61
self.add_common_arguments(build_parser)
52
62
53
63
publish_parser=subparsers.add_parser(PUBLISH, help='Publishes the project')
0 commit comments