refactor: renegare sdk

This commit is contained in:
Catriel Müller
2026-05-06 14:26:06 -03:00
parent 7bb9914a06
commit f40970557f
17 changed files with 347 additions and 163 deletions
+1 -2
View File
@@ -251,8 +251,7 @@ function detail(entry: Entry): string {
function describe(bucket: Bucket, count: number, dryRun: boolean): { label: string; action: string } {
if (bucket === "markers-only") return { label: `markers-only (${count})`, action: dryRun ? "would reset" : "reset" }
if (bucket === "cosmetic-only")
return { label: `cosmetic-only (${count})`, action: dryRun ? "would reset" : "reset" }
if (bucket === "cosmetic-only") return { label: `cosmetic-only (${count})`, action: dryRun ? "would reset" : "reset" }
if (bucket === "small-diff") return { label: `small-diff (${count})`, action: dryRun ? "would reset" : "reset" }
if (bucket === "large-diff") return { label: `large-diff (${count})`, action: "skipped" }
if (bucket === "identical") return { label: `identical (${count})`, action: "nothing to do" }
+1 -9
View File
@@ -10,15 +10,7 @@
import path from "node:path"
import { error, header, info, success, warn } from "./utils/logger"
import {
annotate,
annotates,
changed,
clean,
fresh,
ranges,
supported,
} from "./utils/markers"
import { annotate, annotates, changed, clean, fresh, ranges, supported } from "./utils/markers"
import { last, normalize, root, translate, upstream } from "./utils/upstream"
interface Args {