You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
542 B

const fs = require('fs');
const path = require('path');
const { processCmds } = require('../lib/process-cmds');
const { generateAllCmdsDoc } = require('../lib/generate-docs');
const args = process.argv.slice(2);
const [hestiaRepo = 'https://github.com/hestiacp/hestiacp', hestiaBranch = 'main'] = args;
const cmds = processCmds({ hestiaRepo, hestiaBranch, cache: true, checkOldDocs: false, checkVesta:false });
const allCmdsDoc = generateAllCmdsDoc(cmds);
fs.writeFileSync(path.join(__dirname, '../docs/commands.md'), allCmdsDoc, 'utf8');