Add support for text output
Open
Nobody has claimed this yet.
enhancement
on-hold
- Dominant language
- Go
- Stars
- 102
- Forks
- 49
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 16
Description
We'd like to support a text output, it should be the default and if --output=json is passed, we'd toggle to JSON.
The responses should be:
- Create Store:
Store <ID> successfully created. - List Stores:
id, name, created_at, updated_at
<store_id>, <store_name>, <created_at>, <updated_at>
- Get Store:
id : <store_id>,
name: <store_name>,
created_at: <created_at>,
updated_at: <updated_at>,
deleted_at: <deleted_at>
-
Delete Store:
Store <ID> successfully deleted. -
List Models:
// Model ID : <ID>, // Model : <JSON>
- Write Model
Model <ID> successfully created.
Model: <JSON>
- Get Model
<JSON>
- Write:
Tuple successfully added - Delete:
Tuple successfully deleted - Read:
user, relation, object, date created
<user>, <relation>, <object>, <timestamp>
- Read Changes:
Tuple <tuple in tuple format> ADDED at <timestamp>.
- Check:
Allowed : True | False - List Objects:
<object_type>:<object_id>
<object_type>:<object_id>
<object_type>:<object_id>
<object_type>:<object_id>
- List Relations:
relation1
relation2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the CLI entry points for the Store, Model, tuple, Check, List Objects, and List Relations commands, then trace how the existing JSON output is selected. Run each command to compare current behavior with the requested text responses and verify that text is the default while --output=json preserves JSON output. Done means all listed commands emit the specified text format.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100