command

package
v0.268.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	// Command returns the underlying cobra command.
	Command() *cobra.Command
	// RegisterSubCommands wires child commands onto this command.
	RegisterSubCommands()
}

Command is implemented by every ofga (sub)command.

Directories

Path Synopsis
Package agent implements `ofga agent`: material for coding agents that drive ofga.
Package agent implements `ofga agent`: material for coding agents that drive ofga.
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.
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.
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.
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.
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.
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.
tui
Package tui holds the `ofga mappings` editors as components.
Package tui holds the `ofga mappings` editors as components.
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).
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.
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.
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.
Package store implements `ofga stores`: create, list, inspect and delete OpenFGA stores.
Package store implements `ofga stores`: create, list, inspect and delete OpenFGA stores.
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL