turso-cli icon indicating copy to clipboard operation
turso-cli copied to clipboard

Properly support shell use with pipes

Open CodingDoug opened this issue 2 years ago • 0 comments

What the CLI should do is:

  • Detect when it's invoked non-interactively (not having a TTY)
  • Suppress all normal output (welcome message, prompts, tabular output)
  • Define what the output should be given that input could be anything (maybe a parseable summary of what happened in total?)
  • Define what happens in the event of a SQL error (stop? keep processing input? configurable by flag?)
  • Define useful exit codes

CodingDoug avatar Jun 07 '23 13:06 CodingDoug