Clear screen to show only relevant information after gatsby develop
in the CLI
#13513
Replies: 5 comments
-
When I'm working with Headless CMS I'm not quite familiar with and e.g. try to add some fields in Removing the CLI content would be bad for this usecase. |
Beta Was this translation helpful? Give feedback.
-
We wouldn't literally clear anything, just scroll down so only the success message is showing. |
Beta Was this translation helpful? Give feedback.
-
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open! As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contributefor more information about opening PRs, triaging issues, and contributing! Thanks for being a part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
Another note: Another option is for |
Beta Was this translation helpful? Give feedback.
-
Figma file ready for commenting: https://www.figma.com/file/z81zOLund5Z5FCjnHnUIrN/CLI?node-id=163%3A0 |
Beta Was this translation helpful? Give feedback.
-
Summary
I have seen some other CLI's clear the command line of past information once a process is successful or when there is an error. This issue describes how we could apply that principle to the
gatsby develop
command.Basic example
Right now, this is what my terminal looks like after I run
gatsby develop
.Well, not exactly. All those lines above the "success" line seem sort of irrelevant unless you're a) working on actual code that controls the CLI and trying to see what's happening or b) something goes wrong. If it's successful, you probably just want the local host links so you can move on to hot reloading!
Suggested solution
Once the status reaches a success state, scroll down to show the success line and below.
Additional enhancement
Other options
gatsby develop
to be interactive (likejest --watch
) where you can use commands while it's running and we could have a command to open the browser with development site / graphiql as part of the available commands. With Ink we can make sure we don't add too much info at the bottom.)Motivation
We are doing this because a solid learning principle is to give people the minimum amount of information they need to learn and act. #12951
Thanks and fyi @DSchau @jamo @KyleAMathews @sidharthachatterjee
Beta Was this translation helpful? Give feedback.
All reactions