1
0
Fork 0
mirror of https://github.com/dilllxd/gitfolio.git synced 2024-08-14 22:28:09 +00:00
gitfolio/update.js
imfunny 6fb6408534
v0.1.3
-added cli support (thanks @rohit-smpx)
-arguments for fork
-you can now sort and order repos
-fixed bugs
2019-05-23 15:27:23 +05:30

19 lines
616 B
JavaScript

const {getConfig} = require('./utils');
const {updateHTML} = require('./populate');
async function updateCommand() {
const data = await getConfig();
var username = data[0].username;
var sort = data[0].sort;
var order = data[0].order;
var includeFork = data[0].includeFork;
if(username == null || sort == null || order == null || includeFork == null){
console.log("username not found in config.json, please run build command before using update");
return;
}
updateHTML(username, sort, order, includeFork);
}
module.exports = {
updateCommand
};