Files
flipper/desktop/flipper-dump
Michel Weststrate b6c884f011 Make sure flipper server initialization errors are propagated properly
Summary:
This diff makes sure that errors are propagated similarly in flipper desktop and browser version, and that they are shown in either case.

Since in the browser version, the UI loads after the error happened, we'll store the error so that any client connecting in the future will read and report it.

Also added a `--failFast` flag to flipper-server, so that the process exits immediately if misconfigured, which is convenient in CI use cases and such

Reviewed By: nikoant

Differential Revision: D33348922

fbshipit-source-id: 0f584104f881141fde38da3f0031748415343ea2
2022-01-04 02:57:25 -08:00
..
2021-12-16 14:54:59 -08:00
2021-12-17 07:36:07 -08:00

flipper-dump

Stand alone Flipper command, that uses flipper-server-core to connect to apps and dump all incoming messages.

To get started, run yarn install in the desktop/ folder once.

This package is currently a proof of concept and can be used like:

yarn start --device='iPhone 12' --client='Instagram' --plugin='AnalyticsLogging'

Or to capture all output to a file (meta messages will be printed on STDERR):

yarn --silent start --device='iPhone 12' --client='Instagram' --plugin='AnalyticsLogging' > out.txt

Future features:

  • Package so that it can be run using npx
  • Support filter & transformation functions
  • See TODOs in code
  • Support better configuration
  • Custom formatting
  • [FB] Support Certificate Exchange clients