becodeorg / becodeorg/cli

💫 Refactor configure / login to graph API

Abierto
#24 0 comentarios 0 reacciones 1 asignado Reclamado por @leny Ver en GitHub
enhancement
Lenguaje dominante
JavaScript
Estrellas
6
Forks
5
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

When the graphAPI coming to production, it will be better to hook the cli to the graph API.

The cli will become a _client_, and will not need to be a _second_ source of data.

The primary goal is to allow becode users to log into the API from the cli, then we will be able to replicate some _mybecode_ actions from the cli (we already have the needs for some coaches).

### TODO

- [x] Remove the `configure` command
- [x] Implement the following commands:
- [x] `login` (use the graph API `loginWithGitHub` mutation)
- [x] To implement OAuth2, use a local koa instance to handle the return URL
- [ ] `logout` (use the graph API `revoke` mutation)
- [x] save the token in `~/.becode.cli.json` file
- [ ] refactor `open` command to use the graph API data

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.