We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The CLI options --in and --input-format are ignored.
--in
--input-format
override fun run() { val command = executionOptions ?: ExecutionOptions() val shell = shellOptions ?: ShellOptions() when { // !! should check if command.inputFile != null !! command.query != null -> runCli(command, command.query!!.inputStream()) System.console() == null -> runCli(command, System.`in`) else -> runShell(shell) } }
https://github.com/partiql/partiql-lang-kotlin/blob/main/partiql-cli/src/main/kotlin/org/partiql/cli/pico/PartiQLCommand.kt#L67
Steps to reproduce the behavior:
# Checkout erroneous build git clone git@github.com:partiql/partiql-lang-kotlin.git partiql-help && cd partiql-help git checkout c6bf4aec # Install executable ./gradlew :partiql-cli:install # Create test file echo "'Hello, world!;'" > test.sql ./partiql-cli/build/install/partiql-cli/bin/partiql -i test.sql # ERROR — does not work ./partiql-cli/build/install/partiql-cli/bin/partiql test.sql # OK — prints 'Hello, world!' cat test.sql | ./partiql-cli/build/install/partiql-cli/bin/partiql # OK — prints 'Hello, world!'
Should check if command.inputFile != null then process that file
command.inputFile != null
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
The CLI options
--in
and--input-format
are ignored.https://github.com/partiql/partiql-lang-kotlin/blob/main/partiql-cli/src/main/kotlin/org/partiql/cli/pico/PartiQLCommand.kt#L67
To Reproduce
Steps to reproduce the behavior:
Expected Behavior
Should check if
command.inputFile != null
then process that fileAdditional Context
The text was updated successfully, but these errors were encountered: