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

Add suppress-summary flag to model test command #407

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Siddhant-K-code
Copy link
Contributor

@Siddhant-K-code Siddhant-K-code commented Oct 15, 2024

Description

This pull request adds a new flag, suppress-summary, to the test command. When this flag is set to true, the plain text summary output will be suppressed. This provides more flexibility for users who prefer not to see the summary output.

How to test

go run main.go model test --tests /workspace/openfga-cli/example/model.fga.yaml --verbose --suppress-summary

References

fixes #385

Review Checklist

  • I have clicked on "allow edits by maintainers".
  • I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
  • The correct base branch is being used, if not main
  • I have added tests to validate that the change in functionality is working as expected

If you haven't done so yet, we would appreciate it if you could star the OpenFGA repository. :)

@Siddhant-K-code Siddhant-K-code requested a review from a team as a code owner October 15, 2024 15:49
@Siddhant-K-code Siddhant-K-code changed the title Add suppress-summary flag to test command Add suppress-summary flag to modal test command Oct 15, 2024
@Siddhant-K-code Siddhant-K-code changed the title Add suppress-summary flag to modal test command Add suppress-summary flag to model test command Oct 15, 2024
@Siddhant-K-code

This comment was marked as resolved.

@Siddhant-K-code
Copy link
Contributor Author

@evansims, any plans to introduce this feature to --verbose command?

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.

fga model test --verbose output should be easy to parse
1 participant