-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(cli): decouple io and data transformation
- Loading branch information
1 parent
dbe5a97
commit 39ee3f9
Showing
71 changed files
with
948 additions
and
813 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import type { Disk } from '../lib/disk'; | ||
import { getContext } from '../lib/get-context'; | ||
import type { Config } from '../lib/get-context/get-config/config'; | ||
import { writeIfChanged } from '../lib/write-if-changed'; | ||
import { fixMismatches } from './fix-mismatches'; | ||
|
||
export function fixMismatchesCli(input: Partial<Config.All>, disk: Disk): void { | ||
writeIfChanged(fixMismatches(getContext(input, disk))); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import type { Disk } from '../lib/disk'; | ||
import { getContext } from '../lib/get-context'; | ||
import type { Config } from '../lib/get-context/get-config/config'; | ||
import { writeIfChanged } from '../lib/write-if-changed'; | ||
import { format } from './format'; | ||
|
||
export function formatCli(input: Partial<Config.All>, disk: Disk): void { | ||
writeIfChanged(format(getContext(input, disk))); | ||
} |
Oops, something went wrong.