随笔分类 - CLI
摘要:name: Development pipeline on: pull_request: branches: - main jobs: Server: runs-on: ubuntu-22.04 steps: - name: Check files uses: actions/checkout@v3
阅读全文
摘要:Server wait for database get ready # From https://docs.docker.com/compose/startup-order/ #!/bin/sh # wait-for-postgres.sh set -e host="$1" shift # Log
阅读全文
摘要:curl http://127.0.0.1:10080/login -u user It prints out the token. {"token":"eyJhbGciOwefewwefwIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InVzZXJAZXhhbXBsZS5jb20i
阅读全文
摘要:Sometimes you still want to support the API and quick developer experience of a single command, while still supporting multi commands in your CLI. Thi
阅读全文
摘要:Heavy duty CLI's like gatsby and npm do more than one thing. The convention is to namespace them with a command name after the CLI name, like gatsby n
阅读全文
摘要:The fastest way to create a robust, cross-platform compatible Node.js CLI (optionally typed with TypeScript) is by running npx oclif single mycli. Her
阅读全文
摘要:Before you use any frameworks, you should know the fundamentals of what makes Node CLI's tick. Here we explain everything you need to know to write a
阅读全文