dofs
Version:
A filesystem for Cloudflare Durable Objects.
97 lines (94 loc) • 2.2 kB
JavaScript
import { Command } from "commander";
//#region package.json
var name = "dofs";
var description = "A filesystem for Cloudflare Durable Objects.";
var version = "0.1.0";
var type = "module";
var author = {
"name": "Ben Allfree",
"url": "https://x.com/benallfree"
};
var license = "MIT";
var repository = {
"type": "git",
"url": "https://github.com/benallfree/dofs"
};
var keywords = [
"cloudflare",
"durable objects",
"dofs",
"filesystem",
"file system",
"file-system",
"file-system-api",
"file-system-api-client",
"file-system-api-server",
"file-system-api-client-server"
];
var homepage = "https://github.com/benallfree/dofs/tree/main/packages/dofs";
var scripts = {
"build": "tsdown",
"dev": "tsdown --watch"
};
var main = "./dist/Fs.js";
var module = "./dist/Fs.js";
var types = "./dist/Fs.d.ts";
var exports = {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./hono": {
"import": "./dist/hono.js",
"types": "./dist/hono.d.ts"
}
};
var bin = { "dofs": "./dist/cli/index.js" };
var files = ["dist"];
var dependencies = {
"commander": "^14.0.0",
"neofuse": "^0.0.1-rc.3"
};
var peerDependencies = { "hono": "^4.7.11" };
var devDependencies = {
"@types/node": "^22.15.30",
"tsdown": "^0.12.7"
};
var package_default = {
name,
description,
version,
type,
author,
license,
repository,
keywords,
homepage,
scripts,
main,
module,
types,
exports,
bin,
files,
dependencies,
peerDependencies,
devDependencies
};
//#endregion
//#region src/cli/index.ts
const program = new Command();
program.name("dofs").description("A filesystem for Cloudflare Durable Objects").version(package_default.version);
program.command("init").description("Initialize a new DOFS filesystem").action(() => {
console.log("Initializing DOFS filesystem...");
});
program.command("mount").description("Mount a DOFS filesystem").option("-p, --path <path>", "Mount path").action((options) => {
console.log("Mounting DOFS filesystem...", options);
});
program.command("status").description("Show DOFS filesystem status").action(() => {
console.log("DOFS filesystem status:");
});
program.parse();
//#endregion
//# sourceMappingURL=cli.js.map