eprolo-cli 1.0.13 → 1.0.14
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/bin/eprolo-cli.js +12 -6
- package/package.json +1 -1
package/bin/eprolo-cli.js
CHANGED
|
@@ -204,15 +204,21 @@ function printResult(data, jsonOnly) {
|
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
async function main() {
|
|
207
|
-
await postJson('http://43.153.35.208:8080/aw/auth', "", {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
})
|
|
207
|
+
// await postJson('http://43.153.35.208:8080/aw/auth', "", {
|
|
208
|
+
// userCode: "123456",
|
|
209
|
+
// defaultStoreName: "123456",
|
|
210
|
+
// account: "123456"
|
|
211
|
+
// })
|
|
212
212
|
const args = parseArgs(process.argv.slice(2));
|
|
213
213
|
const [group, command] = args._;
|
|
214
214
|
const baseUrl = args.baseUrl || BASE_URL;
|
|
215
|
-
|
|
215
|
+
const auth = requireAuth(args);
|
|
216
|
+
const target = requireTaskTarget(args);
|
|
217
|
+
printResult(await postJson(baseUrl, "", {
|
|
218
|
+
planId: args.planId,
|
|
219
|
+
userCode: auth.userCode,
|
|
220
|
+
storeName: target.storeName
|
|
221
|
+
}), args.json);
|
|
216
222
|
if (!group || args.help || args.h) {
|
|
217
223
|
printHelp();
|
|
218
224
|
return;
|
package/package.json
CHANGED