Skip to content

Commit 75deffe

Browse files
committed
codebase m
1 parent 423c4c8 commit 75deffe

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

src/cli/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import fs from 'fs';
33
import path from 'path';
44
import { normalizeOptions } from '../config/options.js';
55
import { discoverEnvFiles } from '../services/envDiscovery.js';
6-
import { pairWithExample } from '../services/envPairing.js';
6+
import { pairWithExample } from '../core/envPairing.js';
77
import { ensureFilesOrPrompt } from '../services/ensureFilesOrPrompt.js';
88
import { compareMany } from '../commands/compare.js';
99
import {
Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
import fs from 'fs';
22
import path from 'path';
3-
import type { Discovery } from './envDiscovery.js';
3+
import type { Discovery } from '../services/envDiscovery.js';
4+
import type { FilePair } from '../config/types.js';
45

56
/**
67
* Pairs each environment file with its corresponding example file.
78
* @param d - The discovery object containing environment and example file information.
89
* @returns An array of objects containing the environment name, path, and example path.
910
*/
10-
export function pairWithExample(
11-
d: Discovery,
12-
): Array<{ envName: string; envPath: string; examplePath: string }> {
13-
const pairs: Array<{
14-
envName: string;
15-
envPath: string;
16-
examplePath: string;
17-
}> = [];
11+
export function pairWithExample(d: Discovery): Array<FilePair> {
12+
const pairs: Array<FilePair> = [];
1813
const list = d.envFiles.length > 0 ? d.envFiles : [d.primaryEnv];
1914

2015
for (const envName of list) {

0 commit comments

Comments
 (0)