This is my contribution to Superalgos

This commit is contained in:
Luis Fernando Molina committed 2021-01-05 18:16:18 +01:00
1 parent a134662df0
commit 011b03ee9c
3 files changed
+21 -6

No files matched your search

-4
View File
@@ -535,10 +535,6 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE
const git = simpleGit(options)
const commitMessage = unescape(requestParameters[3])
let remotes = git.getRemotes(true)
console.log('remotes list: ', JSON.stringify(remotes))
respondWithContent(JSON.stringify(global.DEFAULT_OK_RESPONSE), httpResponse)
return
git
.add('./*')
.commit(commitMessage)
+19
View File
@@ -0,0 +1,19 @@
doIt()
async function doIt() {
const simpleGit = require('simple-git');
const options = {
baseDir: process.cwd(),
binary: 'git',
maxConcurrentProcesses: 6,
}
const git = simpleGit(options)
let remotes = await git.getRemotes(true)
console.log('JSON remotes list: ', JSON.stringify(remotes))
console.log('remotes list: ', remotes)
}
@@ -9,8 +9,8 @@
"paragraphs": [
{
"style": "Text",
"text": "Left click and Edit to enter edit mode and change this text. ENTER to write new paragraphs. ESC to exit edit mode. 3",
"updated": 1609863465526
"text": "Left click and Edit to enter edit mode and change this text. ENTER to write new paragraphs. ESC to exit edit mode.",
"updated": 1609866921604
}
]
}