Skip to content

Output in JSON format#160

Open
andreoliwa wants to merge 1 commit intosachaos:masterfrom
andreoliwa:json-output
Open

Output in JSON format#160
andreoliwa wants to merge 1 commit intosachaos:masterfrom
andreoliwa:json-output

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