From c11e17573334dfb487a8e1cc25fa84fa9e138f5c Mon Sep 17 00:00:00 2001 From: Lily <129828376+Soccera1@users.noreply.github.com> Date: Tue, 28 Jul 2026 16:12:21 +1000 Subject: Refactor coreutils into single-call command modules (#1) * Refactor to single call --- src/commands/ls.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/commands/ls.js (limited to 'src/commands/ls.js') diff --git a/src/commands/ls.js b/src/commands/ls.js new file mode 100644 index 0000000..38c944e --- /dev/null +++ b/src/commands/ls.js @@ -0,0 +1,9 @@ +#!/usr/bin/env bun + +import { lsCmd, lsMetaOption } from "../shared/listing.js"; +import { defineCommand, runAsMain } from "../shared/command.js"; + +const singleCall = defineCommand("ls", lsCmd, lsMetaOption); +export default singleCall; + +if (import.meta.main) await runAsMain(singleCall); -- cgit v1.3