Skip to content

Configuration for continuation prompt (like PS2 or PROMPT2 in some shells) #183

@apstndb

Description

@apstndb

Sometimes, we want to reuse queries by copy-and-paste, but multi-line prompts make it harder.

spanner> SELECT *
      -> FROM Singers
      -> WHERE SingerId = 1;

It is harder to reuse than indentation like

spanner> SELECT *
         FROM Singers
         WHERE SingerId = 1;

Currently, the prompt string for continuous line is hard coded.
https://github.com/cloudspannerecosystem/spanner-cli/blob/v0.10.4/cli.go#L353

It would be nice to have configuration like PROMPT2 in some shells or bool flag (--only-indent-multiline?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions