helps manage and harmonise READMEs in many repositories with template files available on deno.land/x/readme_manager
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.
 

23 lines
533 B

import { parse } from "https://deno.land/std@0.146.0/flags/mod.ts";
import { help } from "./help.ts";
import { manager } from "./manager.ts";
/**
* Cli running mode
*
* @param {string[]} args The Deno.args array
* @returns {Promise<void | string | undefined>}
*/
export const cli = (args: string[]): Promise<void | string | undefined> => {
const parsedArgs = parse(args);
if (parsedArgs.help) {
help.map((msg) => console.log(msg));
Deno.exit(0);
}
return manager(parsedArgs, true);
};
await cli(Deno.args);