@mxfb/cli 0.0.33 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/assets/version.txt +1 -1
- package/cli/index.js +1 -1
- package/package.json +1 -1
package/cli/assets/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.34
|
package/cli/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import l from"node:process";import{promises as n}from"node:fs";import c from"node:url";import e from"node:path";import{program as
|
|
2
|
+
import l from"node:process";import{promises as n}from"node:fs";import c from"node:url";import e from"node:path";import{program as i}from"commander";var m=c.fileURLToPath(import.meta.url),s=e.dirname(m);i.name("@mxfb-cli/cli").description("The home of @mxfb/cli's project").option("-l, --list","list all the available commands").option("-v, --version","print current version of the package").action(async o=>{o.list===!0?a():o.version===!0?r():i.help()});i.command("list").description("list all the available commands").action(a);i.command("version").description("print current version of the package").action(r);i.command("help").action(i.help);i.parse(l.argv);async function a(){let o=e.join(s,"assets/list.txt"),t=await n.readFile(o,{encoding:"utf-8"});console.log(t)}async function r(){let o=e.join(s,"assets/version.txt"),t=await n.readFile(o,{encoding:"utf-8"});console.log(t)}
|