UNPKG

@lucidlayer/traceform-onboard

Version:

Interactive CLI tool and onboarding wizard for setting up, validating, and configuring Traceform in React projects. Automates project setup, developer onboarding, and toolchain validation for React, TypeScript, and monorepos.

16 lines (15 loc) 692 B
#!/usr/bin/env node // SPDX-License-Identifier: Apache-2.0 import React from 'react'; import { render } from 'ink'; import App from './app.js'; // Import the main Ink application component // TODO: Add command-line argument parsing if needed (e.g., for verbose mode) // using something like `meow` or `yargs` as `commander` might conflict with Ink's focus management. // For now, we just render the app directly. // Render the Ink application with exitOnCtrlC set to true to allow ctrl+c to stop the script render(React.createElement(App), { exitOnCtrlC: true, patchConsole: false }); // Keep the process alive until Ink exits // (Ink handles exit automatically on unmount or Ctrl+C)