diff options
| author | Soccera1 <[email protected]> | 2026-07-18 09:27:17 +1000 |
|---|---|---|
| committer | Soccera1 <[email protected]> | 2026-07-18 09:27:17 +1000 |
| commit | 6f5241afb5bd1d6a1a8724bf06cc6f205c279402 (patch) | |
| tree | 2aa852e968f6b89f2c8458333ce3e7c38b3c2450 /src/commands/vdir.js | |
| parent | a753f669c9bedfccb9f7f400da018bb487dca5d0 (diff) | |
| download | bnu-6f5241afb5bd1d6a1a8724bf06cc6f205c279402.tar.gz bnu-6f5241afb5bd1d6a1a8724bf06cc6f205c279402.zip | |
Refactor to single call
Diffstat (limited to 'src/commands/vdir.js')
| -rw-r--r-- | src/commands/vdir.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/commands/vdir.js b/src/commands/vdir.js new file mode 100644 index 0000000..64922e5 --- /dev/null +++ b/src/commands/vdir.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 vdirCmd(args) { + return lsCmd(["-l", "--quoting-style=escape", ...args]); +} + +const singleCall = defineCommand("vdir", vdirCmd, lsMetaOption); +export default singleCall; + +if (import.meta.main) await runAsMain(singleCall); |
