Skip to content

Commit c273397

Browse files
committed
new command structure
1 parent 82b9977 commit c273397

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

src/test/kotlin/integration/BatchLiveInstrumentCLI.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class BatchLiveInstrumentCLI : CLIIntegrationTest() {
3939
Main.main(
4040
arrayOf(
4141
"-v",
42-
"add-breakpoint",
42+
"add", "breakpoint",
4343
"integration.BatchLiveInstrumentCLI", i.toString(),
4444
)
4545
)
@@ -53,7 +53,7 @@ class BatchLiveInstrumentCLI : CLIIntegrationTest() {
5353
Main.main(
5454
arrayOf(
5555
"-v",
56-
"get-instruments"
56+
"get", "instruments"
5757
)
5858
)
5959

@@ -67,7 +67,7 @@ class BatchLiveInstrumentCLI : CLIIntegrationTest() {
6767
Main.main(
6868
arrayOf(
6969
"-v",
70-
"remove-instrument",
70+
"remove", "instrument",
7171
it.id!!
7272
)
7373
)

src/test/kotlin/integration/CLIIntegrationTest.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ abstract class CLIIntegrationTest {
3535
Main.main(
3636
arrayOf(
3737
"-v",
38+
"-a", "change-me",
3839
"admin",
3940
"reset"
4041
)

src/test/kotlin/integration/LiveInstrumentCLI.kt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class LiveInstrumentCLI : CLIIntegrationTest() {
3737
Main.main(
3838
arrayOf(
3939
"-v",
40-
"add-log",
40+
"add", "log",
4141
"-h", "100",
4242
"integration.LiveInstrumentCLI",
4343
"1",
@@ -57,7 +57,7 @@ class LiveInstrumentCLI : CLIIntegrationTest() {
5757
Main.main(
5858
arrayOf(
5959
"-v",
60-
"remove-instrument",
60+
"remove", "instrument",
6161
addedLiveLog.id!!
6262
)
6363
)
@@ -79,7 +79,7 @@ class LiveInstrumentCLI : CLIIntegrationTest() {
7979
Main.main(
8080
arrayOf(
8181
"-v",
82-
"add-breakpoint",
82+
"add", "breakpoint",
8383
"integration.LiveInstrumentCLI", "2",
8484
)
8585
)
@@ -95,7 +95,7 @@ class LiveInstrumentCLI : CLIIntegrationTest() {
9595
Main.main(
9696
arrayOf(
9797
"-v",
98-
"remove-instrument",
98+
"remove", "instrument",
9999
removedLiveBp.id!!
100100
)
101101
)
@@ -116,7 +116,7 @@ class LiveInstrumentCLI : CLIIntegrationTest() {
116116
Main.main(
117117
arrayOf(
118118
"-v",
119-
"add-log",
119+
"add", "log",
120120
"integration.LiveInstrumentCLI", "4",
121121
"getMultipleLiveInstruments"
122122
)
@@ -132,7 +132,7 @@ class LiveInstrumentCLI : CLIIntegrationTest() {
132132
Main.main(
133133
arrayOf(
134134
"-v",
135-
"add-breakpoint",
135+
"add", "breakpoint",
136136
"integration.LiveInstrumentCLI", "4",
137137
)
138138
)
@@ -146,7 +146,7 @@ class LiveInstrumentCLI : CLIIntegrationTest() {
146146
Main.main(
147147
arrayOf(
148148
"-v",
149-
"get-instruments"
149+
"get", "instruments"
150150
)
151151
)
152152
val liveInstruments = toList(interceptor.output.toString(), LiveInstrument::class)
@@ -159,7 +159,7 @@ class LiveInstrumentCLI : CLIIntegrationTest() {
159159
Main.main(
160160
arrayOf(
161161
"-v",
162-
"remove-instrument",
162+
"remove", "instrument",
163163
addedLiveLog.id!!
164164
)
165165
)
@@ -173,7 +173,7 @@ class LiveInstrumentCLI : CLIIntegrationTest() {
173173
Main.main(
174174
arrayOf(
175175
"-v",
176-
"remove-instrument",
176+
"remove", "instrument",
177177
addedLiveBp.id!!
178178
)
179179
)

0 commit comments

Comments
 (0)