openfga / openfga/cli

Add an `--output-file` option to `fga tuple read`

Open Beginner friendly
#569 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
102
Forks
49
Avg merge
1d 1h
Merged PRs (30d)
16

Description

We currently display the output of fga tuple read to stdout.

In some cases, we could want to display other things to stdout, like progress information.

We should add an --output-file parameter and write tuples in that file.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the fga tuple read command entry point and trace where its tuples are written to stdout. Add the --output-file option so tuple output can be directed to the requested file while stdout remains available for other information. Update or add the command tests to verify file output and run the relevant CLI test suite.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.