-
-
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.
- Loading branch information
1 parent
87be648
commit 2801b67
Showing
72 changed files
with
578 additions
and
561 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
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 |
---|---|---|
@@ -1,11 +1,19 @@ | ||
import { pipe } from 'tightrope/fn/pipe'; | ||
import type { CliConfig } from '../config/types'; | ||
import { getContext } from '../get-context'; | ||
import type { Disk } from '../lib/disk'; | ||
import type { Effects } from '../lib/effects'; | ||
import { exitIfInvalid } from '../lib/exit-if-invalid'; | ||
import { writeIfChanged } from '../lib/write-if-changed'; | ||
import { fixMismatches } from './fix-mismatches'; | ||
|
||
export function fixMismatchesCli(input: Partial<CliConfig>, disk: Disk): void { | ||
pipe(getContext(input, disk), fixMismatches, writeIfChanged, exitIfInvalid); | ||
export function fixMismatchesCli( | ||
input: Partial<CliConfig>, | ||
effects: Effects, | ||
): void { | ||
pipe( | ||
getContext(input, effects), | ||
fixMismatches, | ||
writeIfChanged, | ||
exitIfInvalid, | ||
); | ||
} |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { pipe } from 'tightrope/fn/pipe'; | ||
import type { CliConfig } from '../config/types'; | ||
import { getContext } from '../get-context'; | ||
import type { Disk } from '../lib/disk'; | ||
import type { Effects } from '../lib/effects'; | ||
import { writeIfChanged } from '../lib/write-if-changed'; | ||
import { format } from './format'; | ||
|
||
export function formatCli(input: Partial<CliConfig>, disk: Disk): void { | ||
pipe(getContext(input, disk), format, writeIfChanged); | ||
export function formatCli(input: Partial<CliConfig>, effects: Effects): void { | ||
pipe(getContext(input, effects), format, writeIfChanged); | ||
} |
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { pipe } from 'tightrope/fn/pipe'; | ||
import type { CliConfig } from '../config/types'; | ||
import { getContext } from '../get-context'; | ||
import type { Disk } from '../lib/disk'; | ||
import type { Effects } from '../lib/effects'; | ||
import { exitIfInvalid } from '../lib/exit-if-invalid'; | ||
import { lintSemverRanges } from './lint-semver-ranges'; | ||
|
||
export function lintSemverRangesCli( | ||
input: Partial<CliConfig>, | ||
disk: Disk, | ||
effects: Effects, | ||
): void { | ||
pipe(getContext(input, disk), lintSemverRanges, exitIfInvalid); | ||
pipe(getContext(input, effects), lintSemverRanges, exitIfInvalid); | ||
} |
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 |
---|---|---|
@@ -1,10 +1,13 @@ | ||
import { pipe } from 'tightrope/fn/pipe'; | ||
import type { CliConfig } from '../config/types'; | ||
import { getContext } from '../get-context'; | ||
import type { Disk } from '../lib/disk'; | ||
import type { Effects } from '../lib/effects'; | ||
import { exitIfInvalid } from '../lib/exit-if-invalid'; | ||
import { listMismatches } from './list-mismatches'; | ||
|
||
export function listMismatchesCli(input: Partial<CliConfig>, disk: Disk): void { | ||
pipe(getContext(input, disk), listMismatches, exitIfInvalid); | ||
export function listMismatchesCli( | ||
input: Partial<CliConfig>, | ||
effects: Effects, | ||
): void { | ||
pipe(getContext(input, effects), listMismatches, exitIfInvalid); | ||
} |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { pipe } from 'tightrope/fn/pipe'; | ||
import type { CliConfig } from '../config/types'; | ||
import { getContext } from '../get-context'; | ||
import type { Disk } from '../lib/disk'; | ||
import type { Effects } from '../lib/effects'; | ||
import { exitIfInvalid } from '../lib/exit-if-invalid'; | ||
import { list } from './list'; | ||
|
||
export function listCli(input: Partial<CliConfig>, disk: Disk): void { | ||
pipe(getContext(input, disk), list, exitIfInvalid); | ||
export function listCli(input: Partial<CliConfig>, effects: Effects): void { | ||
pipe(getContext(input, effects), list, exitIfInvalid); | ||
} |
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { pipe } from 'tightrope/fn/pipe'; | ||
import type { CliConfig } from '../config/types'; | ||
import { getContext } from '../get-context'; | ||
import type { Disk } from '../lib/disk'; | ||
import type { Effects } from '../lib/effects'; | ||
import { writeIfChanged } from '../lib/write-if-changed'; | ||
import { setSemverRanges } from './set-semver-ranges'; | ||
|
||
export function setSemverRangesCli( | ||
input: Partial<CliConfig>, | ||
disk: Disk, | ||
effects: Effects, | ||
): void { | ||
pipe(getContext(input, disk), setSemverRanges, writeIfChanged); | ||
pipe(getContext(input, effects), setSemverRanges, writeIfChanged); | ||
} |
Oops, something went wrong.