Skip to content

Commit

Permalink
Improve login command to show a list of shops (#1023)
Browse files Browse the repository at this point in the history
* Add login and logout commands

* Refactor graphql client and requests, add unit tests

* Update shopify-config methods and tests

* Update renderErrors to use cli Command

* Rework env-pull to call login and remove silent param

* Rework link command to call login and remove --shop flag

* Update list command to call login and remove --shop flag

* Update env-list command to call login and remove --shop flag

* Oclif manifest

* Cleanup

* Rework log replacer

* Mute cli-kit auth logs

* Fix mock

* Update cli-kit version

* Add GraphQL schema generator for local development

* Use business platform login to render a list of shops

* Merge main branch

* Fix tests

* Minor changes

* Update package-lock

* Apply suggestions from code review

Co-authored-by: Gray Gilmore <[email protected]>

* Skip writing config when no directory is passed to login

* Improve unit tests

* Changesets

* Refactor to getUserAccount and add tests

* Store shopName and email in local config

* Show shopName and email after login

* Force prompt during login when not passing --shop flag

* Fix tests

* Update cli-kit version and its deps

* Cleanup

---------

Co-authored-by: Gray Gilmore <[email protected]>
  • Loading branch information
frandiox and graygilmore authored Jun 28, 2023
1 parent c5511f3 commit f6d8030
Show file tree
Hide file tree
Showing 16 changed files with 1,344 additions and 208 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@ artifacts
yarn.lock
!/yarn.lock

admin.schema.json
admin.schema.json
business-platform.schema.json
5 changes: 4 additions & 1 deletion .graphqlrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ projects:
- 'examples/**/app/**/*.{graphql,js,ts,jsx,tsx}'
admin:
schema: 'packages/cli/admin.schema.json'
documents: 'packages/cli/src/**/graphql/admin/**/*.ts'
documents: 'packages/cli/src/**/graphql/admin/**/*.ts'
business-platform:
schema: 'packages/cli/business-platform.schema.json'
documents: 'packages/cli/src/**/graphql/business-platform/**/*.ts'
Loading

0 comments on commit f6d8030

Please sign in to comment.