skillett 0.1.7 → 0.1.9
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 +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -95,9 +95,11 @@ program
|
|
|
95
95
|
.argument("<integration>", "Integration slug (e.g. github)")
|
|
96
96
|
.argument("<endpoint>", "Endpoint name (e.g. create_issue)")
|
|
97
97
|
.allowUnknownOption(true)
|
|
98
|
-
.
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
.allowExcessArguments(true)
|
|
99
|
+
.action((integration, endpoint) => {
|
|
100
|
+
// Grab everything after "run <integration> <endpoint>" from raw argv
|
|
101
|
+
const runIdx = process.argv.indexOf("run");
|
|
102
|
+
const extraArgs = runIdx >= 0 ? process.argv.slice(runIdx + 3) : [];
|
|
101
103
|
return run(integration, endpoint, extraArgs);
|
|
102
104
|
});
|
|
103
105
|
program
|