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

For the WriteAuthorizationModel snippet, use the DSL and only show the CLI #616

Open
rhamzeh opened this issue Jan 5, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@rhamzeh
Copy link
Member

rhamzeh commented Jan 5, 2024

For this component: https://github.com/openfga/openfga.dev/blob/main/src/components/Docs/SnippetViewer/WriteAuthzModelViewer.tsx

Remove all except the CLI

And for the CLI, echo the model DSL into a temp file and have the CLI write that file

@rhamzeh rhamzeh added enhancement New feature or request good first issue Good for newcomers labels Jan 5, 2024
@rhamzeh rhamzeh changed the title For the WriteAuthorizationModel snippet, use the DSL when possible For the WriteAuthorizationModel snippet, use the DSL and only show the CLI Jan 5, 2024
@aaguiarz
Copy link
Member

What does it mean "And for the CLI, echo the model DSL into a temp file and have the CLI write that file"? Would we tell them to do that? would the snippet include echo "..." > file?

@stevehobbsdev stevehobbsdev self-assigned this Jan 11, 2024
@JanumalaAkhilendra
Copy link

If this issue is still open I would like to work on this, please assign it to me.
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants