playground

package
v0.263.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 36 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 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. It is launched by the bare `ofga` command (there is no named subcommand).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cli *cli.CLI) error

Run launches the playground.

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model is the task-pilot-style playground model.

func (Model) Init

func (m Model) Init() tea.Cmd

Init kicks off initial loads.

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update is the central dispatcher. It forwards every message to the toast model first (so its expiry timer advances regardless of which branch below handles the message), then dispatches as before.

func (Model) View

func (m Model) View() tea.View

View implements tea.Model in v2, owning terminal background and alt-screen state.

Jump to

Keyboard shortcuts

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