command

package
v0.267.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 1 Imported by: 0

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 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 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