Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: Add pipe mode #28

Merged
merged 6 commits into from
Dec 20, 2024
Merged

feat!: Add pipe mode #28

merged 6 commits into from
Dec 20, 2024

Conversation

rekmarks
Copy link
Owner

@rekmarks rekmarks commented Dec 19, 2024

Closes #17

Adds a pipe mode to the CLI, enabling it to be used as, well, a pipe. A --file mode may be added in the future, but such a mode can now also be emulated in userland.

Changes

  • Add serialize()/deserialize() methods to Migration
  • Add pipe mode to CLI
    • This mode reads from stdin and writes to stdout
  • Make credential validation more stringent
    • This should catch errors at an earlier stage.
  • BREAKING: Refactor main module exports

TODO:

  • Docs / example usage
  • Allow passing in just credentials to start a migration

Changes the package exports and various parts of
the JS API.
test: Add migration echoing test utility
@rekmarks rekmarks marked this pull request as draft December 19, 2024 06:21
@rekmarks rekmarks marked this pull request as ready for review December 20, 2024 07:00
@rekmarks rekmarks merged commit e8b796f into main Dec 20, 2024
11 checks passed
@rekmarks rekmarks deleted the 1-pipe-mode branch December 20, 2024 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add non-interactive mode for the CLI
1 participant