mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 16:11:57 +00:00
This PR brings back https://github.com/sourcegraph/sgtail back in `sg`, plus a few adjustments to make it easier to use. I'll archive that repo once this PR lands. @camdencheek mentioned you here as you've been the most recent beta tester, it's more an FYI than a request for a review, though it's welcome if you want to spend a bit of time reading this. Closes DINF-155 ## Test plan Locally tested + new unit test + CI ## Changelog - Adds a new `sg tail` command that provides a better UI to tail and filter log messages from `sg start --tail`. |
||
|---|---|---|
| .. | ||
| activity_test.go | ||
| activity.go | ||
| BUILD.bazel | ||
| commands.go | ||
| help.go | ||
| model.go | ||
| README.md | ||
| socket.go | ||
| styles.go | ||
| tail.go | ||
sg tail
A small utility that connects to a running sg start --tail and provides a better UI to read logs.
Usage
In your usual terminal session:
sg tail
In another terminal session:
cd sourcegraph
sg start --tail
CLI
Flags:
--only-name [name]: startssg tailwith a new tab focused, that only displays logs from service whose name starts with[name].
Keybindings
Press h or ? when sg tail is running to see the inline help.