openfga / openfga.dev

OpenFGA website and documentation
http://openfga.dev/
Apache License 2.0
34 stars 60 forks source link

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

Open rhamzeh opened 9 months ago

rhamzeh commented 9 months ago

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

aaguiarz commented 8 months ago

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?