Skip to content

Commit

Permalink
Simplify the getAccess method in the CLI (#444)
Browse files Browse the repository at this point in the history
* Simplify getAccess

* Fix some CLI lint errors

* Read stdin async instead of sync

* Restore README

* Use `readStdin()` in edit.ts instead of stdin.fd

* Simplify checking if user is logged

Add test and fix test suite

* Fix format

* Test skipped as it works locally but fails on github (to be
investigated)

* Update return code in test

---------

Co-authored-by: dariober <[email protected]>
  • Loading branch information
garrettjstevens and dariober authored Sep 20, 2024
1 parent ea5f56e commit d1b6bcb
Show file tree
Hide file tree
Showing 31 changed files with 1,097 additions and 168 deletions.
10 changes: 5 additions & 5 deletions .husky/pre-commit.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ function main() {
spawn.sync('yarn', ['workspace', '@apollo-annotation/cli', 'build'], {
stdio: 'inherit',
})
spawn.sync(
'yarn',
['workspace', '@apollo-annotation/cli', 'oclif', 'readme'],
{ stdio: 'inherit' },
)
spawn.sync(
'yarn',
[
Expand All @@ -44,6 +39,11 @@ function main() {
],
{ stdio: 'inherit' },
)
spawn.sync(
'yarn',
['workspace', '@apollo-annotation/cli', 'oclif', 'readme'],
{ stdio: 'inherit' },
)
spawn.sync(
'git',
[
Expand Down
Loading

0 comments on commit d1b6bcb

Please sign in to comment.