From fc043e972eae16e986138ac994f50cc5eca67f25 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Thu, 21 Jul 2022 17:18:05 -0400 Subject: [PATCH] Update the README. --- 03-replicate-ls/README.md | 3 +++ 03-replicate-ls/step1.js | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/03-replicate-ls/README.md b/03-replicate-ls/README.md index e69de29..ebd0c3a 100644 --- a/03-replicate-ls/README.md +++ b/03-replicate-ls/README.md @@ -0,0 +1,3 @@ +## Replicate `ls` + +This starts you off with a simple command line parsing library and a globbing library to get going. diff --git a/03-replicate-ls/step1.js b/03-replicate-ls/step1.js index 41cd0f9..86f72c7 100644 --- a/03-replicate-ls/step1.js +++ b/03-replicate-ls/step1.js @@ -3,6 +3,8 @@ import glob from "fast-glob"; import { program } from "commander"; program + .name("ls") + .description("ls replica") .option("-l"); program.parse(); @@ -10,8 +12,6 @@ program.parse(); const options = program.opts(); -console.log(options); - if(program.args.length > 0) { const results = glob.sync(program.args[0]);