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.
21 lines
353 B
21 lines
353 B
import path from "path";
|
|
import glob from "fast-glob";
|
|
import { program } from "commander";
|
|
|
|
program
|
|
.name("ls")
|
|
.description("ls replica")
|
|
.option("-l");
|
|
|
|
program.parse();
|
|
|
|
const options = program.opts();
|
|
|
|
|
|
if(program.args.length > 0) {
|
|
const results = glob.sync(program.args[0]);
|
|
|
|
for(let result of results) {
|
|
console.log(result);
|
|
}
|
|
}
|
|
|