@kokiito0926/pseudoalias 0.0.6 → 0.0.7
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/README.md +0 -6
- package/index.js +6 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/index.js
CHANGED
|
@@ -42,11 +42,14 @@ const commands = argv._;
|
|
|
42
42
|
|
|
43
43
|
const args = minimist(process.argv.slice(2));
|
|
44
44
|
const config = args.config;
|
|
45
|
-
const completion = args.completion;
|
|
46
45
|
// console.log(argv);
|
|
47
46
|
// console.log(args);
|
|
48
47
|
// process.exit(0);
|
|
49
48
|
|
|
49
|
+
/*
|
|
50
|
+
const completion = args.completion;
|
|
51
|
+
*/
|
|
52
|
+
|
|
50
53
|
if (args.register) {
|
|
51
54
|
if (args.config) {
|
|
52
55
|
const absConfigPath = path.resolve(args.config);
|
|
@@ -100,6 +103,7 @@ try {
|
|
|
100
103
|
// console.log(restArgs);
|
|
101
104
|
// process.exit(0);
|
|
102
105
|
|
|
106
|
+
/*
|
|
103
107
|
if (completion) {
|
|
104
108
|
const args2 = process.argv;
|
|
105
109
|
const prevWord = args2[args2.length - 1];
|
|
@@ -115,6 +119,7 @@ try {
|
|
|
115
119
|
}
|
|
116
120
|
process.exit(0);
|
|
117
121
|
}
|
|
122
|
+
*/
|
|
118
123
|
|
|
119
124
|
if (!subCommand) {
|
|
120
125
|
const availableFunctions = Object.keys(aliasModule).filter((k) => k !== "default");
|