aboutsummaryrefslogtreecommitdiff
path: root/src/commands/dir.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/dir.js')
-rw-r--r--src/commands/dir.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/commands/dir.js b/src/commands/dir.js
new file mode 100644
index 0000000..408772c
--- /dev/null
+++ b/src/commands/dir.js
@@ -0,0 +1,13 @@
+#!/usr/bin/env bun
+
+import { lsCmd, lsMetaOption } from "../shared/listing.js";
+import { defineCommand, runAsMain } from "../shared/command.js";
+
+export async function dirCmd(args) {
+ return lsCmd(["-C", "--quoting-style=escape", ...args]);
+}
+
+const singleCall = defineCommand("dir", dirCmd, lsMetaOption);
+export default singleCall;
+
+if (import.meta.main) await runAsMain(singleCall);