File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,10 @@ const HELP = `
1515Display changes to API client caused by a given Omicron PR. Works by downloading
1616the 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
2223Usage:
2324 ./tools/deno/api-diff.ts [-f] [PR number or commit SHA]
@@ -124,8 +125,8 @@ async function genForCommit(commit: string, force: boolean) {
124125
125126if ( ! $ . 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
130131const args = parseArgs ( Deno . args , {
131132 alias : { force : 'f' , help : 'h' } ,
You can’t perform that action at this time.
0 commit comments