git push upon share; helper for git child process

Signed-off-by: dzdidi <deniszalessky@gmail.com>
This commit is contained in:
dzdidi
2023-08-15 17:47:24 +02:00
parent 99359c9364
commit 67386b3cdf
2 changed files with 16 additions and 13 deletions

View File

@@ -44,8 +44,8 @@ program
if (options.share) {
home.shareAppFolder(name)
await git.push()
console.log(`Shared "${name}" project`)
// push?
}
})
@@ -57,6 +57,7 @@ program
const name = path.resolve(p).split(path.sep).pop()
if ((home.isInitialized(name))) {
home.shareAppFolder(name)
await git.push()
console.log(`Shared "${name}" project`)
return
}