cdd-cli 3.2.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.atl/skill-registry.md +30 -0
- package/.editorconfig +12 -0
- package/.eslintrc.json +1 -1
- package/.prettierignore +4 -0
- package/.prettierrc +8 -0
- package/.~lock.ROADMAP.md# +1 -0
- package/CHANGELOG.md +80 -0
- package/README.es.md +198 -0
- package/README.md +81 -23
- package/ROADMAP.md +647 -0
- package/SECURITY.md +5 -0
- package/__mocks__/ink.cjs +17 -0
- package/coverage/clover.xml +471 -500
- package/coverage/coverage-final.json +16 -16
- package/coverage/lcov-report/ContainerCreationPrompt.jsx.html +400 -0
- package/coverage/lcov-report/ControlsHUD.jsx.html +256 -0
- package/coverage/lcov-report/components/ContainerCreationPrompt.jsx.html +394 -0
- package/coverage/lcov-report/components/PromptField.jsx.html +229 -0
- package/coverage/lcov-report/components/SuggestionPanel.jsx.html +268 -0
- package/coverage/lcov-report/components/index.html +146 -0
- package/coverage/lcov-report/helpers/constants.js.html +139 -22
- package/coverage/lcov-report/helpers/containerOptionsBuilder.js.html +75 -42
- package/coverage/lcov-report/helpers/dockerHubService.js.html +310 -0
- package/coverage/lcov-report/helpers/dockerService/serviceComponents/containerActions.js.html +162 -84
- package/coverage/lcov-report/helpers/dockerService/serviceComponents/containerList.js.html +50 -32
- package/coverage/lcov-report/helpers/dockerService/serviceComponents/index.html +21 -21
- package/coverage/lcov-report/helpers/imageNameUtils.js.html +181 -0
- package/coverage/lcov-report/helpers/index.html +84 -54
- package/coverage/lcov-report/helpers/logger.js.html +68 -68
- package/coverage/lcov-report/helpers/safeCall.js.html +15 -15
- package/coverage/lcov-report/helpers/validationHelpers.js.html +66 -114
- package/coverage/lcov-report/hooks/creation/index.html +20 -20
- package/coverage/lcov-report/hooks/creation/useContainerActions.js.html +38 -17
- package/coverage/lcov-report/hooks/creation/useContainerCreation.js.html +593 -89
- package/coverage/lcov-report/hooks/creation/useLogsViewer.js.html +7 -7
- package/coverage/lcov-report/hooks/debug/index.html +5 -5
- package/coverage/lcov-report/hooks/debug/useDebugLogs.js.html +35 -20
- package/coverage/lcov-report/hooks/index.html +40 -40
- package/coverage/lcov-report/hooks/navigation/index.html +19 -19
- package/coverage/lcov-report/hooks/navigation/useContainerSelection.js.html +38 -29
- package/coverage/lcov-report/hooks/useContainerCommandRouter.js.html +119 -80
- package/coverage/lcov-report/hooks/useControls.js.html +306 -123
- package/coverage/lcov-report/hooks/useEraseConfirmation.js.html +8 -8
- package/coverage/lcov-report/hooks/useExitHandler.js.html +50 -41
- package/coverage/lcov-report/index.html +52 -67
- package/coverage/lcov.info +899 -952
- package/dist/App.js +18 -12
- package/dist/components/ContainerCreationPrompt.js +50 -13
- package/dist/components/ContainerList.js +3 -3
- package/dist/components/ContainerRow.js +20 -20
- package/dist/components/ContainerSection.js +3 -3
- package/dist/components/ControlsHUD.js +106 -0
- package/dist/components/Footer.js +2 -2
- package/dist/components/Header.js +7 -7
- package/dist/components/LogViewer.js +3 -3
- package/dist/components/MessageFeedback.js +2 -2
- package/dist/components/PromptField.js +4 -4
- package/dist/components/StatsBar.js +5 -5
- package/dist/components/SuggestionPanel.js +53 -0
- package/dist/components/UsageMenu.js +3 -3
- package/dist/helpers/appInfo.js +7 -7
- package/dist/helpers/constants.js +154 -1
- package/dist/helpers/containerOptionsBuilder.js +3 -3
- package/dist/helpers/dockerHubService.js +111 -0
- package/dist/helpers/dockerService/dockerService.js +1 -1
- package/dist/helpers/dockerService/serviceComponents/containerActions.js +99 -40
- package/dist/helpers/dockerService/serviceComponents/containerList.js +11 -11
- package/dist/helpers/dockerService/serviceComponents/containerLogs.js +9 -9
- package/dist/helpers/dockerService/serviceComponents/containerStats.js +5 -5
- package/dist/helpers/dockerService/serviceComponents/imageUtils.js +1 -1
- package/dist/helpers/exitWithMessage.js +10 -10
- package/dist/helpers/imageNameUtils.js +32 -0
- package/dist/helpers/logger.js +13 -13
- package/dist/helpers/safeCall.js +2 -2
- package/dist/helpers/validationHelpers.js +76 -21
- package/dist/hooks/creation/useContainerActions.js +28 -11
- package/dist/hooks/creation/useContainerCreation.js +452 -62
- package/dist/hooks/creation/useLogsViewer.js +2 -2
- package/dist/hooks/debug/useDebugLogs.js +4 -4
- package/dist/hooks/useContainerCommandRouter.js +14 -14
- package/dist/hooks/useContainers.js +3 -3
- package/dist/hooks/useControls.js +85 -38
- package/dist/hooks/useEraseConfirmation.js +3 -3
- package/dist/index.js +9 -2
- package/jest.config.cjs +7 -0
- package/package.json +7 -3
- package/src/App.jsx +39 -16
- package/src/components/ContainerCreationPrompt.jsx +54 -10
- package/src/components/ContainerList.jsx +3 -3
- package/src/components/ContainerRow.jsx +19 -16
- package/src/components/ContainerSection.jsx +3 -3
- package/src/components/ControlsHUD.jsx +66 -0
- package/src/components/Footer.jsx +2 -2
- package/src/components/Header.jsx +7 -7
- package/src/components/LogViewer.jsx +5 -3
- package/src/components/MessageFeedback.jsx +2 -2
- package/src/components/PromptField.jsx +4 -4
- package/src/components/StatsBar.jsx +11 -7
- package/src/components/SuggestionPanel.jsx +61 -0
- package/src/components/UsageMenu.jsx +18 -13
- package/src/helpers/appInfo.js +7 -7
- package/src/helpers/constants.js +48 -9
- package/src/helpers/containerOptionsBuilder.js +16 -5
- package/src/helpers/dockerHubService.js +75 -0
- package/src/helpers/dockerService/dockerService.js +1 -1
- package/src/helpers/dockerService/serviceComponents/containerActions.js +87 -61
- package/src/helpers/dockerService/serviceComponents/containerList.js +31 -25
- package/src/helpers/dockerService/serviceComponents/containerLogs.js +41 -26
- package/src/helpers/dockerService/serviceComponents/containerStats.js +13 -11
- package/src/helpers/dockerService/serviceComponents/imageUtils.js +5 -4
- package/src/helpers/exitWithMessage.js +13 -7
- package/src/helpers/imageNameUtils.js +32 -0
- package/src/helpers/logger.js +15 -16
- package/src/helpers/safeCall.js +2 -2
- package/src/helpers/validationHelpers.js +13 -29
- package/src/hooks/creation/useContainerActions.js +32 -12
- package/src/hooks/creation/useContainerCreation.js +293 -47
- package/src/hooks/creation/useLogsViewer.js +2 -2
- package/src/hooks/debug/useDebugLogs.js +15 -10
- package/src/hooks/navigation/useContainerSelection.js +17 -14
- package/src/hooks/useContainerCommandRouter.js +71 -58
- package/src/hooks/useContainers.js +4 -4
- package/src/hooks/useControls.js +135 -72
- package/src/hooks/useEraseConfirmation.js +3 -3
- package/src/hooks/useExitHandler.js +29 -26
- package/src/index.js +8 -4
- package/test/ContainerCreationPrompt.dom.test.js +313 -0
- package/test/ControlsHUD.dom.test.js +125 -0
- package/test/SuggestionPanel.dom.test.js +83 -0
- package/test/constants.test.js +41 -0
- package/test/dockerHubService.test.js +213 -0
- package/test/logger.test.js +58 -0
- package/test/resolveImageTag.test.js +26 -0
- package/test/useContainerCreation.dom.test.js +428 -2
- package/test/useContainerCreationHub.dom.test.js +184 -0
- package/test/useControls.dom.test.js +406 -4
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">33.33% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>12/36</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">23.07% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>6/26</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">28.57% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>2/7</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">33.33% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>12/36</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -173,7 +173,20 @@
|
|
|
173
173
|
<a name='L108'></a><a href='#L108'>108</a>
|
|
174
174
|
<a name='L109'></a><a href='#L109'>109</a>
|
|
175
175
|
<a name='L110'></a><a href='#L110'>110</a>
|
|
176
|
-
<a name='L111'></a><a href='#L111'>111</a
|
|
176
|
+
<a name='L111'></a><a href='#L111'>111</a>
|
|
177
|
+
<a name='L112'></a><a href='#L112'>112</a>
|
|
178
|
+
<a name='L113'></a><a href='#L113'>113</a>
|
|
179
|
+
<a name='L114'></a><a href='#L114'>114</a>
|
|
180
|
+
<a name='L115'></a><a href='#L115'>115</a>
|
|
181
|
+
<a name='L116'></a><a href='#L116'>116</a>
|
|
182
|
+
<a name='L117'></a><a href='#L117'>117</a>
|
|
183
|
+
<a name='L118'></a><a href='#L118'>118</a>
|
|
184
|
+
<a name='L119'></a><a href='#L119'>119</a>
|
|
185
|
+
<a name='L120'></a><a href='#L120'>120</a>
|
|
186
|
+
<a name='L121'></a><a href='#L121'>121</a>
|
|
187
|
+
<a name='L122'></a><a href='#L122'>122</a>
|
|
188
|
+
<a name='L123'></a><a href='#L123'>123</a>
|
|
189
|
+
<a name='L124'></a><a href='#L124'>124</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
177
190
|
<span class="cline-any cline-neutral"> </span>
|
|
178
191
|
<span class="cline-any cline-neutral"> </span>
|
|
179
192
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -211,10 +224,11 @@
|
|
|
211
224
|
<span class="cline-any cline-neutral"> </span>
|
|
212
225
|
<span class="cline-any cline-neutral"> </span>
|
|
213
226
|
<span class="cline-any cline-neutral"> </span>
|
|
214
|
-
<span class="cline-any cline-yes">
|
|
215
|
-
<span class="cline-any cline-no"> </span>
|
|
227
|
+
<span class="cline-any cline-yes">96x</span>
|
|
216
228
|
<span class="cline-any cline-neutral"> </span>
|
|
217
|
-
<span class="cline-any cline-
|
|
229
|
+
<span class="cline-any cline-yes">12x</span>
|
|
230
|
+
<span class="cline-any cline-neutral"> </span>
|
|
231
|
+
<span class="cline-any cline-yes">12x</span>
|
|
218
232
|
<span class="cline-any cline-no"> </span>
|
|
219
233
|
<span class="cline-any cline-no"> </span>
|
|
220
234
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -226,7 +240,7 @@
|
|
|
226
240
|
<span class="cline-any cline-no"> </span>
|
|
227
241
|
<span class="cline-any cline-neutral"> </span>
|
|
228
242
|
<span class="cline-any cline-neutral"> </span>
|
|
229
|
-
<span class="cline-any cline-
|
|
243
|
+
<span class="cline-any cline-yes">12x</span>
|
|
230
244
|
<span class="cline-any cline-no"> </span>
|
|
231
245
|
<span class="cline-any cline-no"> </span>
|
|
232
246
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -241,7 +255,7 @@
|
|
|
241
255
|
<span class="cline-any cline-no"> </span>
|
|
242
256
|
<span class="cline-any cline-neutral"> </span>
|
|
243
257
|
<span class="cline-any cline-neutral"> </span>
|
|
244
|
-
<span class="cline-any cline-
|
|
258
|
+
<span class="cline-any cline-yes">12x</span>
|
|
245
259
|
<span class="cline-any cline-no"> </span>
|
|
246
260
|
<span class="cline-any cline-no"> </span>
|
|
247
261
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -250,7 +264,7 @@
|
|
|
250
264
|
<span class="cline-any cline-no"> </span>
|
|
251
265
|
<span class="cline-any cline-neutral"> </span>
|
|
252
266
|
<span class="cline-any cline-neutral"> </span>
|
|
253
|
-
<span class="cline-any cline-
|
|
267
|
+
<span class="cline-any cline-yes">12x</span>
|
|
254
268
|
<span class="cline-any cline-no"> </span>
|
|
255
269
|
<span class="cline-any cline-no"> </span>
|
|
256
270
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -258,7 +272,7 @@
|
|
|
258
272
|
<span class="cline-any cline-no"> </span>
|
|
259
273
|
<span class="cline-any cline-neutral"> </span>
|
|
260
274
|
<span class="cline-any cline-neutral"> </span>
|
|
261
|
-
<span class="cline-any cline-
|
|
275
|
+
<span class="cline-any cline-yes">12x</span>
|
|
262
276
|
<span class="cline-any cline-no"> </span>
|
|
263
277
|
<span class="cline-any cline-no"> </span>
|
|
264
278
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -267,10 +281,10 @@
|
|
|
267
281
|
<span class="cline-any cline-no"> </span>
|
|
268
282
|
<span class="cline-any cline-neutral"> </span>
|
|
269
283
|
<span class="cline-any cline-neutral"> </span>
|
|
270
|
-
<span class="cline-any cline-
|
|
271
|
-
<span class="cline-any cline-
|
|
272
|
-
<span class="cline-any cline-
|
|
273
|
-
<span class="cline-any cline-
|
|
284
|
+
<span class="cline-any cline-yes">12x</span>
|
|
285
|
+
<span class="cline-any cline-yes">12x</span>
|
|
286
|
+
<span class="cline-any cline-yes">12x</span>
|
|
287
|
+
<span class="cline-any cline-yes">12x</span>
|
|
274
288
|
<span class="cline-any cline-neutral"> </span>
|
|
275
289
|
<span class="cline-any cline-neutral"> </span>
|
|
276
290
|
<span class="cline-any cline-no"> </span>
|
|
@@ -281,9 +295,21 @@
|
|
|
281
295
|
<span class="cline-any cline-no"> </span>
|
|
282
296
|
<span class="cline-any cline-neutral"> </span>
|
|
283
297
|
<span class="cline-any cline-neutral"> </span>
|
|
284
|
-
<span class="cline-any cline-yes">24x</span>
|
|
285
298
|
<span class="cline-any cline-neutral"> </span>
|
|
286
|
-
<span class="cline-any cline-neutral"> </span
|
|
299
|
+
<span class="cline-any cline-neutral"> </span>
|
|
300
|
+
<span class="cline-any cline-neutral"> </span>
|
|
301
|
+
<span class="cline-any cline-neutral"> </span>
|
|
302
|
+
<span class="cline-any cline-neutral"> </span>
|
|
303
|
+
<span class="cline-any cline-neutral"> </span>
|
|
304
|
+
<span class="cline-any cline-neutral"> </span>
|
|
305
|
+
<span class="cline-any cline-neutral"> </span>
|
|
306
|
+
<span class="cline-any cline-neutral"> </span>
|
|
307
|
+
<span class="cline-any cline-neutral"> </span>
|
|
308
|
+
<span class="cline-any cline-neutral"> </span>
|
|
309
|
+
<span class="cline-any cline-neutral"> </span>
|
|
310
|
+
<span class="cline-any cline-yes">96x</span>
|
|
311
|
+
<span class="cline-any cline-neutral"> </span>
|
|
312
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { useCallback } from 'react';
|
|
287
313
|
|
|
288
314
|
/**
|
|
289
315
|
* Hook responsible solely for routing Docker action keystrokes to the correct handler.
|
|
@@ -321,75 +347,88 @@ export function useContainerCommandRouter({
|
|
|
321
347
|
onToggleDebug,
|
|
322
348
|
onStartCreate,
|
|
323
349
|
}) {
|
|
324
|
-
const handleDockerCommands = useCallback(
|
|
325
|
-
|
|
350
|
+
const handleDockerCommands = useCallback(
|
|
351
|
+
(input) => {
|
|
352
|
+
const container = containers[selected];
|
|
326
353
|
|
|
327
|
-
<span class="
|
|
328
|
-
<span class="cstat-no" title="statement not covered" >
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
<span class="cstat-no" title="statement not covered" >
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
<span class="cstat-no" title="statement not covered" >
|
|
337
|
-
|
|
354
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (input === 'i') {
|
|
355
|
+
<span class="cstat-no" title="statement not covered" > actions.handleAction({</span>
|
|
356
|
+
actionFn: <span class="fstat-no" title="function not covered" >as</span>ync (id) => <span class="cstat-no" title="statement not covered" >await actions.startContainer(id),</span>
|
|
357
|
+
actionLabel: 'Starting',
|
|
358
|
+
selected,
|
|
359
|
+
stateCheck: <span class="fstat-no" title="function not covered" >(c</span>) =>
|
|
360
|
+
<span class="cstat-no" title="statement not covered" > (c.state === 'running' || c.status === 'running') &&</span>
|
|
361
|
+
'Container is already running.',
|
|
362
|
+
});
|
|
363
|
+
<span class="cstat-no" title="statement not covered" > return true;</span>
|
|
364
|
+
}
|
|
338
365
|
|
|
339
|
-
<span class="
|
|
340
|
-
<span class="cstat-no" title="statement not covered" >
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
<span class="cstat-no" title="statement not covered" >
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
<span class="cstat-no" title="statement not covered" >
|
|
352
|
-
|
|
366
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (input === 'p') {
|
|
367
|
+
<span class="cstat-no" title="statement not covered" > actions.handleAction({</span>
|
|
368
|
+
actionFn: <span class="fstat-no" title="function not covered" >as</span>ync (id) => <span class="cstat-no" title="statement not covered" >await actions.stopContainer(id),</span>
|
|
369
|
+
actionLabel: 'Stopping',
|
|
370
|
+
selected,
|
|
371
|
+
stateCheck: <span class="fstat-no" title="function not covered" >(c</span>) =>
|
|
372
|
+
<span class="cstat-no" title="statement not covered" > (c.state === 'exited' ||</span>
|
|
373
|
+
c.status === 'exited' ||
|
|
374
|
+
c.state === 'stopped' ||
|
|
375
|
+
c.status === 'stopped') &&
|
|
376
|
+
'Container is already stopped.',
|
|
377
|
+
});
|
|
378
|
+
<span class="cstat-no" title="statement not covered" > return true;</span>
|
|
379
|
+
}
|
|
353
380
|
|
|
354
|
-
<span class="
|
|
355
|
-
<span class="cstat-no" title="statement not covered" >
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
<span class="cstat-no" title="statement not covered" >
|
|
361
|
-
|
|
381
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (input === 'r') {
|
|
382
|
+
<span class="cstat-no" title="statement not covered" > actions.handleAction({</span>
|
|
383
|
+
actionFn: <span class="fstat-no" title="function not covered" >as</span>ync (id) => <span class="cstat-no" title="statement not covered" >await actions.restartContainer(id),</span>
|
|
384
|
+
actionLabel: 'Restarting',
|
|
385
|
+
selected,
|
|
386
|
+
});
|
|
387
|
+
<span class="cstat-no" title="statement not covered" > return true;</span>
|
|
388
|
+
}
|
|
362
389
|
|
|
363
|
-
<span class="
|
|
364
|
-
<span class="cstat-no" title="statement not covered" >
|
|
390
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (input === 'e') {
|
|
391
|
+
<span class="cstat-no" title="statement not covered" > if (!container) {</span>
|
|
392
|
+
<span class="cstat-no" title="statement not covered" > return true;</span>
|
|
393
|
+
}
|
|
394
|
+
<span class="cstat-no" title="statement not covered" > onStartErase();</span>
|
|
365
395
|
<span class="cstat-no" title="statement not covered" > return true;</span>
|
|
366
396
|
}
|
|
367
|
-
<span class="cstat-no" title="statement not covered" > onStartErase();</span>
|
|
368
|
-
<span class="cstat-no" title="statement not covered" > return true;</span>
|
|
369
|
-
}
|
|
370
397
|
|
|
371
|
-
<span class="
|
|
372
|
-
<span class="cstat-no" title="statement not covered" >
|
|
398
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (input === 'l') {
|
|
399
|
+
<span class="cstat-no" title="statement not covered" > if (!container) {</span>
|
|
400
|
+
<span class="cstat-no" title="statement not covered" > return true;</span>
|
|
401
|
+
}
|
|
402
|
+
<span class="cstat-no" title="statement not covered" > logsViewer.openLogs();</span>
|
|
403
|
+
<span class="cstat-no" title="statement not covered" > startLogsStream(container.id);</span>
|
|
373
404
|
<span class="cstat-no" title="statement not covered" > return true;</span>
|
|
374
405
|
}
|
|
375
|
-
<span class="cstat-no" title="statement not covered" > logsViewer.openLogs();</span>
|
|
376
|
-
<span class="cstat-no" title="statement not covered" > startLogsStream(container.id);</span>
|
|
377
|
-
<span class="cstat-no" title="statement not covered" > return true;</span>
|
|
378
|
-
}
|
|
379
406
|
|
|
380
|
-
<span class="
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
407
|
+
<span class="missing-if-branch" title="else path not taken" >E</span>if (input === 'c') {
|
|
408
|
+
onStartCreate();
|
|
409
|
+
creation.resetCreation();
|
|
410
|
+
return true;
|
|
411
|
+
}
|
|
385
412
|
|
|
386
|
-
<span class="cstat-no" title="statement not covered" >
|
|
387
|
-
<span class="cstat-no" title="statement not covered" >
|
|
388
|
-
<span class="cstat-no" title="statement not covered" >
|
|
389
|
-
|
|
413
|
+
<span class="cstat-no" title="statement not covered" > if (input === 'd') {</span>
|
|
414
|
+
<span class="cstat-no" title="statement not covered" > onToggleDebug();</span>
|
|
415
|
+
<span class="cstat-no" title="statement not covered" > return true;</span>
|
|
416
|
+
}
|
|
390
417
|
|
|
391
|
-
<span class="cstat-no" title="statement not covered" >
|
|
392
|
-
|
|
418
|
+
<span class="cstat-no" title="statement not covered" > return false;</span>
|
|
419
|
+
},
|
|
420
|
+
[
|
|
421
|
+
actions,
|
|
422
|
+
containers,
|
|
423
|
+
creation,
|
|
424
|
+
logsViewer,
|
|
425
|
+
onStartCreate,
|
|
426
|
+
onStartErase,
|
|
427
|
+
onToggleDebug,
|
|
428
|
+
selected,
|
|
429
|
+
startLogsStream,
|
|
430
|
+
]
|
|
431
|
+
);
|
|
393
432
|
|
|
394
433
|
return { handleDockerCommands };
|
|
395
434
|
}
|
|
@@ -400,7 +439,7 @@ export function useContainerCommandRouter({
|
|
|
400
439
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
401
440
|
Code coverage generated by
|
|
402
441
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
403
|
-
at 2026-04-
|
|
442
|
+
at 2026-04-27T22:13:21.150Z
|
|
404
443
|
</div>
|
|
405
444
|
<script src="../prettify.js"></script>
|
|
406
445
|
<script>
|