start-command 0.20.3 → 0.20.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # start-command
2
2
 
3
+ ## 0.20.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 688f1f5: fix: Add empty line before result marker for visual continuity
8
+ - Added empty line before result marker (✓/✗) after command output
9
+ - Ensures consistent visual formatting: command → empty line → output → empty line → result marker
10
+ - Applied to both docker pull virtual commands and user commands
11
+ - Tests document the expected visual format
12
+
13
+ Expected format:
14
+
15
+ ```
16
+
17
+ $ docker pull alpine:latest
18
+
19
+ latest: Pulling from library/alpine
20
+ ...
21
+
22
+
23
+
24
+ $ echo hi
25
+
26
+ hi
27
+
28
+
29
+ ```
30
+
31
+ Fixes #73
32
+
3
33
  ## 0.20.3
4
34
 
5
35
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "start-command",
3
- "version": "0.20.3",
3
+ "version": "0.20.4",
4
4
  "description": "Gamification of coding, execute any command with ability to auto-report issues on GitHub",
5
5
  "main": "src/bin/cli.js",
6
6
  "exports": {
@@ -142,7 +142,9 @@ function dockerPullImage(image) {
142
142
  success = false;
143
143
  }
144
144
 
145
- // Print result marker and separator (no empty line needed - already printed after command)
145
+ // Print empty line before result marker for visual separation (issue #73)
146
+ // This ensures output is visually separated from the result marker
147
+ console.log();
146
148
  console.log(createVirtualCommandResult(success));
147
149
  console.log(createTimelineSeparator());
148
150
 
@@ -533,13 +533,41 @@ describe('output-blocks module', () => {
533
533
  // $ docker pull alpine:latest
534
534
  // <empty line>
535
535
  // <docker output>
536
+ // <empty line>
536
537
  // ✓
537
538
  // │
538
539
  // $ echo hi
539
540
  // <empty line>
540
541
  // hi
542
+ // <empty line>
541
543
  // ✓
542
544
  });
545
+
546
+ it('output formatting follows visual continuity pattern', () => {
547
+ // Issue #73: All commands should have consistent formatting:
548
+ // 1. Command line ($ ...)
549
+ // 2. Empty line (visual separation)
550
+ // 3. Command output
551
+ // 4. Empty line (visual separation)
552
+ // 5. Result marker (✓ or ✗)
553
+ //
554
+ // This test documents the expected output structure that
555
+ // dockerPullImage and runInDocker should produce.
556
+
557
+ // Verify createCommandLine produces the correct format
558
+ const commandLine = createCommandLine('docker pull alpine:latest');
559
+ expect(commandLine).toBe('$ docker pull alpine:latest');
560
+
561
+ // Verify createVirtualCommandBlock matches
562
+ const virtualCommandLine = createVirtualCommandBlock(
563
+ 'docker pull alpine:latest'
564
+ );
565
+ expect(virtualCommandLine).toBe(commandLine);
566
+
567
+ // Verify result markers
568
+ expect(createVirtualCommandResult(true)).toBe('✓');
569
+ expect(createVirtualCommandResult(false)).toBe('✗');
570
+ });
543
571
  });
544
572
  });
545
573