gitwrit 0.2.4 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -0
- package/package.json +1 -1
- package/src/commands/start.js +3 -0
package/README.md
CHANGED
|
@@ -32,6 +32,18 @@ yarn global add gitwrit
|
|
|
32
32
|
|
|
33
33
|
---
|
|
34
34
|
|
|
35
|
+
## Updating
|
|
36
|
+
|
|
37
|
+
To update gitwrit to the latest version:
|
|
38
|
+
```sh
|
|
39
|
+
npm install -g gitwrit@latest
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Starting from v0.2.1, gitwrit will automatically notify you when a new version
|
|
43
|
+
is available after every command—so you will never need to check manually again.
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
35
47
|
## Quick start
|
|
36
48
|
|
|
37
49
|
```sh
|
|
@@ -101,6 +113,7 @@ gitwrit checks for updates automatically after every command. If a newer version
|
|
|
101
113
|
· Update available: 0.2.1 → 0.3.0 Run npm install -g gitwrit to update.
|
|
102
114
|
```
|
|
103
115
|
|
|
116
|
+
|
|
104
117
|
The check runs in the background, caches for 24 hours, and fails silently if you are offline. It will never interrupt or slow down your workflow.
|
|
105
118
|
|
|
106
119
|
---
|
package/package.json
CHANGED
package/src/commands/start.js
CHANGED
|
@@ -5,6 +5,7 @@ import { dirname, join } from 'path';
|
|
|
5
5
|
import ora from 'ora';
|
|
6
6
|
|
|
7
7
|
import { print } from '../ui.js';
|
|
8
|
+
import { renderBanner } from '../banner.js';
|
|
8
9
|
import { PID_FILE, GITWRIT_DIR } from '../paths.js';
|
|
9
10
|
import { globalConfigExists, loadGlobalConfig } from '../settings.js';
|
|
10
11
|
import { readState, STATE } from '../state.js';
|
|
@@ -78,6 +79,8 @@ export async function start() {
|
|
|
78
79
|
|
|
79
80
|
await mkdir(GITWRIT_DIR, { recursive: true });
|
|
80
81
|
|
|
82
|
+
renderBanner();
|
|
83
|
+
|
|
81
84
|
// spinner while daemon spins up
|
|
82
85
|
const spinner = ora({
|
|
83
86
|
text: 'Starting gitwrit...',
|