Skip to content

format command output missing trailing newline #295

@ajitpratap0

Description

@ajitpratap0

Description

The format command output does not end with a newline character, causing the shell prompt to appear on the same line as the output.

Reproduction

echo "SELECT * FROM users" | gosqlx format -
# Output: "SELECT * FROM users"% (prompt on same line)

Expected

Output should end with \n so the shell prompt appears on the next line, consistent with standard Unix tool behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcli

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions