@relbns/github-cloner
Version:
Github Cloner is a CLI tool for cloning Github repositories with interactive lists in the terminal. the tool lists your repositories and sorts them by owners (users and organizations) and by name. choosing the repo will clone it to the current directory i
21 lines (17 loc) • 584 B
JavaScript
import ora from 'ora';
import chalk from 'chalk';
import { Command } from 'commander';
import { getPackageVersion } from './utils.js';
import { runCli } from './github-cli-cloner.js';
export default async function cli () {
const CLI_VERSION = getPackageVersion();
const program = new Command();
const spinner = ora("Welcome");
program
.name('clone')
.description('Github repos cloner CLI')
.version(CLI_VERSION, '-v, --version', 'output the current version')
.helpOption(false);
program.parse();
await runCli(spinner);
}