Skip to content

Repository files navigation

@getpaseo/import

Import projects, supported project settings, and recoverable worktrees into Paseo.

Source data is inspected read-only. Existing Paseo configuration wins when imported settings collide.

Library

import { connectHostAutomation } from "@getpaseo/client/node";
import { runImport } from "@getpaseo/import";

const host = await connectHostAutomation({ appVersion: "0.2.0" });

try {
  const result = await runImport({
    source: { kind: "conductor" },
    host,
    onEvent: (event) => console.log(event.message),
  });

  console.log(result.notices);
} finally {
  await host.close();
}

The host argument is structural. Applications may inject any implementation of the exported PaseoImportHost interface.

CLI

npx @getpaseo/import conductor

Options:

--host <connection>   Paseo daemon connection
--database <path>     Override source database path
--dry-run             Inspect and print the import plan without writing
--yes                 Skip confirmation

The CLI requires a compatible @getpaseo/client release that exports @getpaseo/client/node.

About

Import projects and workspaces into Paseo

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages