This pull request addresses issue #29 by ensuring that command line option strings are always quoted. This update enhances the handling of options containing spaces or special characters, ensuring consistent behavior across different environments.
Key Changes
Command Line Options Quoting:
Updated the quoting mechanism in src/internal/flyway-command-line-options.ts to use appropriate quotes based on the platform (single quotes for Unix-based systems and double quotes for Windows).
Tests Adjustments:
Modified related integration and unit tests in test/integration/migrate.test.ts and test/unit/internal/flyway-command-line-options.test.ts to align with the new quoting logic.
Context
The changes ensure that all command line options are correctly interpreted by the system, resolving issues where options with spaces or special characters were previously mishandled.
Description
This pull request addresses issue #29 by ensuring that command line option strings are always quoted. This update enhances the handling of options containing spaces or special characters, ensuring consistent behavior across different environments.
Key Changes
Command Line Options Quoting:
src/internal/flyway-command-line-options.ts
to use appropriate quotes based on the platform (single quotes for Unix-based systems and double quotes for Windows).Tests Adjustments:
test/integration/migrate.test.ts
andtest/unit/internal/flyway-command-line-options.test.ts
to align with the new quoting logic.Context
The changes ensure that all command line options are correctly interpreted by the system, resolving issues where options with spaces or special characters were previously mishandled.