Skip to content

Commit

Permalink
Merge pull request #198 from xataio/cli
Browse files Browse the repository at this point in the history
Scaffolding for TypeScript CLI
  • Loading branch information
gimenete committed May 20, 2022
2 parents eb1ca4c + e905071 commit 84980a0
Show file tree
Hide file tree
Showing 28 changed files with 12,543 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ jobs:
run: npm run lint

- name: Test
run: npm test
run: |
npm test
env:
XATA_DATABASE_URL: ${{ secrets.INTEGRATION_TEST_DATABASE_URL }}
XATA_API_KEY: ${{ secrets.INTEGRATION_TEST_API_KEY }}
Expand Down
1 change: 1 addition & 0 deletions cli/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/dist
Empty file added cli/.eslintrc
Empty file.
9 changes: 9 additions & 0 deletions cli/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*-debug.log
*-error.log
/.nyc_output
/dist
/lib
/tmp
/yarn.lock
node_modules
oclif.manifest.json
1 change: 1 addition & 0 deletions cli/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Xata CLI
6 changes: 6 additions & 0 deletions cli/bin/run.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env node
import { Errors, flush, run } from '@oclif/core';

run(void 0, import.meta.url)
.then(flush)
.catch(Errors.handle);

0 comments on commit 84980a0

Please sign in to comment.