live/ny_live library

Nylo Live: run commands inside your running app from Metro.

Built-in commands (metro live:run route, metro live:run storage, ...), your own LiveCommands from lib/app/commands/ and your Seeders from lib/app/seeders/ are exposed to Metro as Dart VM service extensions while the app runs in debug or profile mode. Release builds never register them.

Classes

CommandBuilder
Declares the options and flags of a LiveCommand.
CommandResult
The parsed arguments a LiveCommand receives.
LiveCommand
A command that runs inside your running app, triggered from Metro.
NyLive
Exposes live commands to Metro while the app runs in debug or profile mode.
NyLiveNavigatorObserver
Streams navigation changes to Metro as nylo.route events.
Seeder
Puts a running app into a known state, and takes it back out.
StorageSnapshot
What an app holds in NyStorage and Backpack, in a form that can be kept in a file or a seeder and put back into an app.

Mixins

LiveOutput
Writes lines to the terminal that ran a live command or seeder.

Exceptions / Errors

LiveException
A live command failed in a way Metro should show to the developer.