Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output in JSON format #160

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

andreoliwa
Copy link
Contributor

@andreoliwa andreoliwa commented Mar 20, 2021

Fixes #130

I'm not a Go developer...
If you don't like the code or the approach I used, or something is missing, please let me know.

Tasks

  • todoist --json projects
  • todoist --json labels
  • todoist --json completed-list
  • todoist --json list

lib/project.go Outdated
type ProjectJSON struct {
ID int `json:"ID"`
Name string `json:"Name"`
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lib directory (package) should focus on Todoist API.
So I don't want to place this code here.
This should be placed on './projects.go' .

@andreoliwa andreoliwa changed the title output projects in JSON format Output in JSON format Mar 20, 2021
@andreoliwa andreoliwa marked this pull request as ready for review March 25, 2021 01:14
@andreoliwa
Copy link
Contributor Author

Hi @sachaos, now it's ready. 🙂
Let me know if you want me to change anything.

Thanks for this cool project! 💪🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature request] JSON output
2 participants