fig.initis the entry point for your app.
fig.initis called once the
fig.jsruntime has loaded and configured the environment. Attempting to run
fig.inithas been called will result in undefined behavior.
$ echo "Hello, world."| fig your-app parameter --flag value
"Hello, world.". and options will be a list of the CLI flags. If your app is called with nothing piped in,
stdinwill be an empty string.
fig.initprovides your app with any data from
stdinthat is passed to it as well as any flags/options, it is called with. The array of options can also be accessed with