sync

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package sync provides the sync step for onboarding.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

Model waits for sync to complete.

func New

func New(theme styles.Theme, syncer powersync.Syncer, scope log.Scope) *Model

New creates a new sync step.

func (*Model) Init

func (m *Model) Init() tea.Cmd

Init starts the spinner and checks if already ready.

func (*Model) SetSize

func (m *Model) SetSize(width, height int)

SetSize updates dimensions.

func (*Model) ShortHelp

func (m *Model) ShortHelp() []key.Binding

ShortHelp returns the key bindings for the short help view.

func (*Model) Update

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

Update handles messages.

func (*Model) View

func (m *Model) View() string

View renders the sync UI.

Jump to

Keyboard shortcuts

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