-
Notifications
You must be signed in to change notification settings - Fork 7
Commit a58a518
committed
[CLI] Add a "restart" app command (#37)
The CLI provides a command to start and stop an app/example. Often it's useful to have a restart command, that will stop and start again the same app. This is needed only for the CLI interface.
The command already exists. But error management should be improved:
restarting an app X when app Y is running does not show a clear error
if the app running is not the one being restarted: error
if no app is running: just start the app1 parent 7508a4b commit a58a518
File tree
2 files changed
+106
-6
lines changed- cmd/arduino-app-cli/app
- internal/orchestrator
2 files changed
+106
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | + | ||
20 | + | ||
21 | + | ||
19 | 22 | | |
23 | + | ||
24 | + | ||
20 | 25 | | |
21 | 26 | | |
27 | + | ||
22 | 28 | | |
29 | + | ||
30 | + | ||
23 | 31 | | |
24 | 32 | | |
25 | 33 | | |
| |||
32 | 40 | | |
33 | 41 | | |
34 | 42 | | |
35 | - | ||
43 | + | ||
36 | 44 | | |
37 | 45 | | |
38 | - | ||
39 | - | ||
40 | - | ||
41 | - | ||
42 | 46 | | |
43 | - | ||
47 | + | ||
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
53 | + | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + | ||
58 | + | ||
59 | + | ||
60 | + | ||
61 | + | ||
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | ||
66 | + | ||
67 | + | ||
68 | + | ||
69 | + | ||
70 | + | ||
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
78 | + | ||
79 | + | ||
80 | + | ||
81 | + | ||
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | ||
86 | + | ||
87 | + | ||
88 | + | ||
89 | + | ||
90 | + | ||
91 | + | ||
92 | + | ||
93 | + | ||
94 | + | ||
95 | + | ||
96 | + | ||
97 | + | ||
98 | + | ||
99 | + | ||
100 | + | ||
101 | + | ||
102 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | + | ||
135 | + | ||
136 | + | ||
134 | 137 | | |
135 | 138 | | |
136 | 139 | | |
| |||
379 | 382 | | |
380 | 383 | | |
381 | 384 | | |
385 | + | ||
386 | + | ||
387 | + | ||
382 | 388 | | |
383 | 389 | | |
384 | 390 | | |
| |||
427 | 433 | | |
428 | 434 | | |
429 | 435 | | |
436 | + | ||
437 | + | ||
438 | + | ||
439 | + | ||
440 | + | ||
441 | + | ||
442 | + | ||
443 | + | ||
444 | + | ||
445 | + | ||
446 | + | ||
447 | + | ||
448 | + | ||
449 | + | ||
450 | + | ||
451 | + | ||
452 | + | ||
453 | + | ||
454 | + | ||
455 | + | ||
456 | + | ||
457 | + | ||
458 | + | ||
459 | + | ||
460 | + | ||
461 | + | ||
462 | + | ||
463 | + | ||
464 | + | ||
465 | + | ||
466 | + | ||
467 | + | ||
468 | + | ||
469 | + | ||
470 | + | ||
471 | + | ||
472 | + | ||
473 | + | ||
474 | + | ||
475 | + | ||
430 | 476 | | |
431 | 477 | | |
432 | 478 | | |
| |||
0 commit comments