question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Firestore's delete script's last line printed to stdout does not end in a newline character.

See original GitHub issue

[REQUIRED] Environment info

firebase-tools: 7.6.1

Platform: Ubuntu

[REQUIRED] Test case

Run firebase firestore:delete and observe that the last line printed to stdout does not end in a newline character, resulting in an awkward UX.

[REQUIRED] Steps to reproduce

See “Test case”.

[REQUIRED] Expected behavior

This script should print a newline character after printing Deleted N docs (X docs/s).

[REQUIRED] Actual behavior

The last line does not end in a newline, which results in an awkward UX that looks like:

firebase firestore:delete ...
Deleted N docs (X docs/s)dcthetall@mymachine:~/some/dir$

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
samtsterncommented, Oct 18, 2019

@DCtheTall absolutely would accept a PR, thanks for the offer! Just @-mention me when you send it.

0reactions
samtsterncommented, Oct 28, 2019

@DCtheTall thank you for your contribution!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove end of line characters from stdout? Multiple lines into ...
I was expecting the following command to replace each newline character with the space character. This would take the multiple lines and combine ......
Read more >
Removing a newline character at the end of a file
You can read it as: "check if last line is an empty line. if so delete this line". I tested with both cases:...
Read more >
bq command-line tool reference | BigQuery - Google Cloud
This reference provides a synopsis, description, examples, flags, and arguments for each command in bq, the BigQuery command line tool.
Read more >
Chapter 4. Loading Data into BigQuery - O'Reilly
In this case, we are asking bq to load the dataset, informing the tool that the source format is CSV and that we...
Read more >
How To Replace "\N" With Newline In Awk - ADocLib
No newline at end of file --- > foo $ echo $? 1 $ sed -e '$a\' ... by a I want to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found