Skip to content

Commit

Permalink
docs: update command docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nzhl committed Nov 18, 2022
1 parent f897c42 commit cc9e00f
Show file tree
Hide file tree
Showing 4 changed files with 146 additions and 116 deletions.
2 changes: 1 addition & 1 deletion .ci/prepare-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const command = cmd.command({
async handler({}) {
updateCargoToml(await getPackageVersion())
exec("cargo build --release")
exec("yarn generate-command-docs --binary-path=./target/release/fnm")
exec("pnpm generate-command-docs --binary-path=./target/release/fnm")
exec("./.ci/record_screen.sh")
},
})
Expand Down
4 changes: 2 additions & 2 deletions .ci/print-command-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const command = cmd.command({
if (gitStatus.state === "dirty") {
process.exitCode = 1
console.error(
"The file has changed. Please re-run `yarn generate-command-docs`."
"The file has changed. Please re-run `pnpm generate-command-docs`."
)
console.error(`hint: The following diff was found:`)
console.error()
Expand Down Expand Up @@ -76,7 +76,7 @@ async function main(targetFile, fnmPath) {

stream.close()

await execa(`yarn`, ["prettier", "--write", targetFile])
await execa(`pnpm`, ["prettier", "--write", targetFile])
}

/**
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ jobs:
run: fnm --version
- run: fnm install
- name: Install Node deps
run: fnm exec -- yarn
run: fnm exec -- pnpm
- name: Generate command markdown
run: |
fnm exec -- yarn generate-command-docs --check --binary-path=$(which fnm)
fnm exec -- pnpm generate-command-docs --check --binary-path=$(which fnm)
Loading

0 comments on commit cc9e00f

Please sign in to comment.