Comparing version 0.1.9 to 0.1.10
@@ -326,3 +326,2 @@ "use strict"; | ||
}, []).map(line => lineSpacer + line), | ||
'', | ||
'' | ||
@@ -343,4 +342,4 @@ ]; | ||
function render(lines) { | ||
process.stdout.write(lines.join('\n')); | ||
renderState.cursorY = lines.length; | ||
process.stdout.write(lines.join('\n') + '\n'); | ||
renderState.cursorY = lines.length + 1; | ||
} | ||
@@ -570,2 +569,3 @@ function cursorTo(x, y) { | ||
]; | ||
log(message); | ||
return { status, message }; | ||
@@ -747,9 +747,12 @@ } | ||
if (currentVersion < state.latestPackageVersion) { | ||
const sourcePackageManager = fs_1.existsSync(fsPath.join(__dirname, '../homebrew')) ? 'homebrew' : 'npm'; | ||
const updateCommand = sourcePackageManager === 'npm' ? 'npm install -g git-jump' : 'brew upgrade git-jump'; | ||
state.scene = Scene.Message; | ||
state.message = [ | ||
state.message = state.message.concat([ | ||
'', | ||
`New version of git-jump is available: ${yellow(currentVersion)} → ${green(state.latestPackageVersion)}.`, | ||
`See what\'s new: https://github.com/mykolaharmash/git-jump/releases/tag/v${state.latestPackageVersion}`, | ||
`Changelog: https://github.com/mykolaharmash/git-jump/releases/tag/v${state.latestPackageVersion}`, | ||
'', | ||
`${bold('npm install -g git-jump')} to update.` | ||
]; | ||
`${bold(updateCommand)} to update.` | ||
]); | ||
view(state); | ||
@@ -756,0 +759,0 @@ } |
{ | ||
"name": "git-jump", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "Git Branches Helper", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -17,2 +17,7 @@ ![git-jump CLI logo](https://raw.githubusercontent.com/mykolaharmash/git-jump/main/img/readme-banner.png) | ||
``` | ||
or using Homebrew | ||
```shell | ||
brew tap mykolaharmash/git-jump | ||
brew install git-jump | ||
``` | ||
@@ -19,0 +24,0 @@ ## Usage |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40502
911
116