Skip to content

Commit a480ca7

Browse files
committed
tools: api-diff: switch from difftastic to delta
1 parent ad05de9 commit a480ca7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tools/deno/api-diff.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ const HELP = `
1515
Display changes to API client caused by a given Omicron PR. Works by downloading
1616
the OpenAPI spec before and after, generating clients in temp dirs, and diffing.
1717
18-
Requirements:
18+
Dependencies:
1919
- Deno (which you have if you're seeing this message)
2020
- GitHub CLI (gh)
21+
- Optional: delta diff pager https://dandavison.github.io/delta/
2122
2223
Usage:
2324
./tools/deno/api-diff.ts [-f] [PR number or commit SHA]
@@ -124,8 +125,8 @@ async function genForCommit(commit: string, force: boolean) {
124125

125126
if (!$.commandExistsSync('gh')) throw Error('Need gh (GitHub CLI)')
126127

127-
// prefer difftastic if it exists. https://difftastic.wilfred.me.uk/
128-
const diffTool = $.commandExistsSync('difft') ? 'difft' : 'diff'
128+
// prefer delta if it exists. https://dandavison.github.io/delta/
129+
const diffTool = $.commandExistsSync('delta') ? 'delta' : 'diff'
129130

130131
const args = parseArgs(Deno.args, {
131132
alias: { force: 'f', help: 'h' },

0 commit comments

Comments
 (0)