Directories
¶
| Path | Synopsis |
|---|---|
|
Package agentmode decides whether the CLI is being driven by a coding agent and should default to compact, prompt-free, colorless machine output.
|
Package agentmode decides whether the CLI is being driven by a coding agent and should default to compact, prompt-free, colorless machine output. |
|
Package agentskill embeds the SKILL.md that teaches a coding agent to drive ofga.
|
Package agentskill embeds the SKILL.md that teaches a coding agent to drive ofga. |
|
Package apilog captures OpenFGA HTTP traffic.
|
Package apilog captures OpenFGA HTTP traffic. |
|
Package atomicfile writes a file by staging it next to its destination and renaming it into place only once the caller is satisfied with the contents.
|
Package atomicfile writes a file by staging it next to its destination and renaming it into place only once the caller is satisfied with the contents. |
|
Package cli holds the shared dependencies threaded through every command: the logger, the loaded config, and the global flag overrides.
|
Package cli holds the shared dependencies threaded through every command: the logger, the loaded config, and the global flag overrides. |
|
Package client constructs a configured go-openfga client from resolved config.
|
Package client constructs a configured go-openfga client from resolved config. |
|
Package clierr centralizes how command errors map to user-facing messages and process exit codes, so main can stay a thin shell and every command surfaces failures consistently.
|
Package clierr centralizes how command errors map to user-facing messages and process exit codes, so main can stay a thin shell and every command surfaces failures consistently. |
|
Package cmdmeta attaches machine-readable metadata to cobra commands and flags, so tooling (the command catalog) can describe the CLI without parsing help text.
|
Package cmdmeta attaches machine-readable metadata to cobra commands and flags, so tooling (the command catalog) can describe the CLI without parsing help text. |
|
Package command defines the shared Command abstraction used by every ofga command, mirroring the structure of task-pilot-cli: each command exposes its cobra command, registers its sub-commands, and implements its run logic.
|
Package command defines the shared Command abstraction used by every ofga command, mirroring the structure of task-pilot-cli: each command exposes its cobra command, registers its sub-commands, and implements its run logic. |
|
agent
Package agent implements `ofga agent`: material for coding agents that drive ofga.
|
Package agent implements `ofga agent`: material for coding agents that drive ofga. |
|
api
Package api implements `ofga api`: send a raw request to the OpenFGA API using the active profile's connection and authentication.
|
Package api implements `ofga api`: send a raw request to the OpenFGA API using the active profile's connection and authentication. |
|
assertions
Package assertions implements `ofga assertions`: read and write the assertion test-suite attached to an authorization model, and run it.
|
Package assertions implements `ofga assertions`: read and write the assertion test-suite attached to an authorization model, and run it. |
|
base
Package base provides the root `ofga` command: persistent flags, the help banner, and registration of every top-level sub-command.
|
Package base provides the root `ofga` command: persistent flags, the help banner, and registration of every top-level sub-command. |
|
configcmd
Package configcmd implements `ofga config`: inspect where ofga's configuration lives and what it resolves to.
|
Package configcmd implements `ofga config`: inspect where ofga's configuration lives and what it resolves to. |
|
docs
Package docs implements `ofga docs`: search and read the OpenFGA documentation on openfga.dev from the terminal.
|
Package docs implements `ofga docs`: search and read the OpenFGA documentation on openfga.dev from the terminal. |
|
mapping
Package mapping implements the `ofga mappings` command group, which authors openfga/mapper mapping files.
|
Package mapping implements the `ofga mappings` command group, which authors openfga/mapper mapping files. |
|
mapping/tui
Package tui holds the `ofga mappings` editors as components.
|
Package tui holds the `ofga mappings` editors as components. |
|
model
Package model implements `ofga model`: write, list, inspect, and visualize authorization models (including a colored relation graph).
|
Package model implements `ofga model`: write, list, inspect, and visualize authorization models (including a colored relation graph). |
|
playground
Package playground implements the interactive `ofga` TUI: a full-screen, Crush-style shell for exploring a store — picking models, browsing tuples, running live checks, and visualizing the authorization model as a graph.
|
Package playground implements the interactive `ofga` TUI: a full-screen, Crush-style shell for exploring a store — picking models, browsing tuples, running live checks, and visualizing the authorization model as a graph. |
|
profiles
Package profiles implements `ofga profiles`: manage named connection profiles — list, switch, inspect, create, edit and remove them.
|
Package profiles implements `ofga profiles`: manage named connection profiles — list, switch, inspect, create, edit and remove them. |
|
query
Package query implements `ofga query`: the read-side authorization questions — check, batch-check, expand, list-objects and list-users.
|
Package query implements `ofga query`: the read-side authorization questions — check, batch-check, expand, list-objects and list-users. |
|
store
Package store implements `ofga stores`: create, list, inspect and delete OpenFGA stores.
|
Package store implements `ofga stores`: create, list, inspect and delete OpenFGA stores. |
|
tuple
Package tuple implements `ofga tuples`: write, delete, read relationship tuples and follow the changelog.
|
Package tuple implements `ofga tuples`: write, delete, read relationship tuples and follow the changelog. |
|
Package config loads and persists ofga configuration: a set of named connection profiles (contexts) plus the name of the active one.
|
Package config loads and persists ofga configuration: a set of named connection profiles (contexts) plus the name of the active one. |
|
Package configtest isolates the CLI's on-disk config so a test never reads or writes the developer's real one.
|
Package configtest isolates the CLI's on-disk config so a test never reads or writes the developer's real one. |
|
Package docsearch is a client for the openfga.dev documentation: the Mintlify MCP search endpoint and the markdown rendering of each docs page.
|
Package docsearch is a client for the openfga.dev documentation: the Mintlify MCP search endpoint and the markdown rendering of each docs page. |
|
Package dsl provides syntax highlighting and syntax-error diagnostics for OpenFGA DSL text, built on the openfga/language ANTLR lexer and parser.
|
Package dsl provides syntax highlighting and syntax-error diagnostics for OpenFGA DSL text, built on the openfga/language ANTLR lexer and parser. |
|
Package fga holds OpenFGA domain helpers shared by the CLI commands and the TUI: parsing tuple shorthand and turning an authorization model into a graph.
|
Package fga holds OpenFGA domain helpers shared by the CLI commands and the TUI: parsing tuple shorthand and turning an authorization model into a graph. |
|
Package mapping builds, renders and previews openfga/mapper mapping documents.
|
Package mapping builds, renders and previews openfga/mapper mapping documents. |
|
auth0
Package auth0 carries a catalog of Auth0 Events event types and an example payload for each, embedded so the `ofga mappings` workspace can preview a rule without network access.
|
Package auth0 carries a catalog of Auth0 Events event types and an example payload for each, embedded so the `ofga mappings` workspace can preview a rule without network access. |
|
Package modeltest runs authorization-model tests declared by an ofga workspace (an ofga.yaml manifest and its *.test.yaml files).
|
Package modeltest runs authorization-model tests declared by an ofga workspace (an ofga.yaml manifest and its *.test.yaml files). |
|
Package optimize analyses authorization models and proposes equivalence-preserving rewrites.
|
Package optimize analyses authorization models and proposes equivalence-preserving rewrites. |
|
bench
Package bench synthesizes tuples and checks from an authorization model and benchmarks the checks against a before and an after model on a counting embedded OpenFGA server.
|
Package bench synthesizes tuples and checks from an authorization model and benchmarks the checks against a before and an after model on a counting embedded OpenFGA server. |
|
benchfmt
Package benchfmt renders a bench.Result as the human-readable benchmark report shared by the CLI and the playground.
|
Package benchfmt renders a bench.Result as the human-readable benchmark report shared by the CLI and the playground. |
|
Package output renders command results either as a styled table/summary for humans or as indented JSON for machines (--json).
|
Package output renders command results either as a styled table/summary for humans or as indented JSON for machines (--json). |
|
Package outputschema names the published JSON Schemas that describe what each command prints under --json.
|
Package outputschema names the published JSON Schemas that describe what each command prints under --json. |
|
outputschematest
Package outputschematest validates command output against the committed JSON Schema files, so each command package can prove its schema describes exactly what --json prints.
|
Package outputschematest validates command output against the committed JSON Schema files, so each command package can prove its schema describes exactly what --json prints. |
|
Package prompt provides consistent confirmation gates for destructive commands: interactive y/N (or type-to-confirm) on a terminal, and a required --force flag when running non-interactively so scripts fail safe.
|
Package prompt provides consistent confirmation gates for destructive commands: interactive y/N (or type-to-confirm) on a terminal, and a required --force flag when running non-interactively so scripts fail safe. |
|
Package readlimit provides bounded reads for user-controlled files, stdin, and HTTP bodies.
|
Package readlimit provides bounded reads for user-controlled files, stdin, and HTTP bodies. |
|
Package style centralizes the lipgloss palette and reusable styles.
|
Package style centralizes the lipgloss palette and reusable styles. |
|
Package theme defines named color palettes for the CLI and TUI.
|
Package theme defines named color palettes for the CLI and TUI. |
|
ui
|
|
|
extedit
Package extedit resolves the user's terminal editor and builds the command that opens a file in it, so every TUI that hands a file to $EDITOR picks the same editor and parses the variable the same way.
|
Package extedit resolves the user's terminal editor and builds the command that opens a file in it, so every TUI that hands a file to $EDITOR picks the same editor and parses the variable the same way. |
|
field
Package field provides a minimal themed form: labeled text inputs with an accent bar on focus, inline validation, tab-cycled focus, and enter-to-submit.
|
Package field provides a minimal themed form: labeled text inputs with an accent bar on focus, inline validation, tab-cycled focus, and enter-to-submit. |
|
icons
Package icons resolves the process-wide glyph set: auto (the default, which promotes to Nerd Font only on a positive signal), an explicit Nerd Font rung, a universal Unicode fallback, or off for decorative glyphs.
|
Package icons resolves the process-wide glyph set: auto (the default, which promotes to Nerd Font only on a positive signal), an explicit Nerd Font rung, a universal Unicode fallback, or off for decorative glyphs. |
|
list
Package list wraps bubbles/list with a task-pilot-style delegate: a thick left-border selection accent, title+description rows, and built-in filtering.
|
Package list wraps bubbles/list with a task-pilot-style delegate: a thick left-border selection accent, title+description rows, and built-in filtering. |
|
logo
Package logo renders the OPENFGA block wordmark, in the spirit of charmbracelet/crush's stylized title.
|
Package logo renders the OPENFGA block wordmark, in the spirit of charmbracelet/crush's stylized title. |
|
picker
Package picker is a small vertical single-select list with per-row descriptions.
|
Package picker is a small vertical single-select list with per-row descriptions. |
|
shell
Package shell renders the Crush-style playground frame: a left sidebar (gradient logo + context + nav + status footer), a main content pane, and a bottom status bar, composited flat on a lipgloss canvas with no painted panel backgrounds — structure comes from headers and rules.
|
Package shell renders the Crush-style playground frame: a left sidebar (gradient logo + context + nav + status footer), a main content pane, and a bottom status bar, composited flat on a lipgloss canvas with no painted panel backgrounds — structure comes from headers and rules. |
|
toast
Package toast renders transient bottom-right status chips that auto-expire.
|
Package toast renders transient bottom-right status chips that auto-expire. |
|
Package version holds build information, injected at release time via -ldflags.
|
Package version holds build information, injected at release time via -ldflags. |
Click to show internal directories.
Click to hide internal directories.