taskair-cli 1.0.1 → 1.0.2
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/dist/index.js +13 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1606,7 +1606,7 @@ function registerExport(program2) {
|
|
|
1606
1606
|
// src/index.ts
|
|
1607
1607
|
program.name("taskair").description(
|
|
1608
1608
|
"\u2726 Space-themed task management with E2E encryption \xB7 AI-native \xB7 Privacy-first"
|
|
1609
|
-
).version("1.0.
|
|
1609
|
+
).version("1.0.2", "-v, --version", "Output the current version").helpOption("-h, --help", "Display help information");
|
|
1610
1610
|
registerConfigure(program);
|
|
1611
1611
|
registerLogin(program);
|
|
1612
1612
|
registerLogout(program);
|
|
@@ -1628,7 +1628,18 @@ program.addHelpText(
|
|
|
1628
1628
|
\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D
|
|
1629
1629
|
`
|
|
1630
1630
|
);
|
|
1631
|
-
|
|
1631
|
+
var args = [...process.argv];
|
|
1632
|
+
var aliasMap = {
|
|
1633
|
+
"-a": "add",
|
|
1634
|
+
"-l": "list",
|
|
1635
|
+
"-d": "done",
|
|
1636
|
+
"-r": "remove",
|
|
1637
|
+
"-e": "edit"
|
|
1638
|
+
};
|
|
1639
|
+
if (args[2] && aliasMap[args[2]]) {
|
|
1640
|
+
args[2] = aliasMap[args[2]];
|
|
1641
|
+
}
|
|
1642
|
+
program.parseAsync(args).catch((err) => {
|
|
1632
1643
|
console.error(`
|
|
1633
1644
|
\u2717 ${err.message}`);
|
|
1634
1645
|
process.exit(1);
|