klaudiosinani / klaudiosinani/taskbook

Add option to disable 'type tb --help to get started! ★' when no task has been created

Open
#182 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.3k
Forks
393
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
Although it's not an issue, the `type tb --help to get started! ★` message always shows up when I open a new terminal and there are no tasks/notes created. Sometimes I'd like to suppress this message.

![image](https://user-images.githubusercontent.com/43397475/95790597-b2964480-0cad-11eb-9160-6a520fdab440.png)

**Describe the solution you'd like**
I'd like to have a way to disable that message permanently by adding and extra option to the configuration & default configuration file (inserting an extra condition to `Render.displayStats` to check for this rule).

On `~/.taskbook.json`:

```json
{
"displayHelpMessage": false
}
```

Contributor guide

Open the contributing guide

Research direction

Start by locating Render.displayStats and the default configuration file mentioned in the issue. Trace how configuration options are loaded, add the displayHelpMessage setting there, and verify that setting it to false suppresses the startup help message when no tasks or notes exist.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.