@stelfield/cli 0.12.10 → 0.12.11
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/package.json +1 -1
- package/src/format.js +5 -0
package/package.json
CHANGED
package/src/format.js
CHANGED
|
@@ -456,6 +456,11 @@ export function formatTaskDetail(data, { json = false } = {}) {
|
|
|
456
456
|
} else if (data.my_application) {
|
|
457
457
|
lines.push(` 我的申请:${data.my_application.status === 'pending' ? '已报名·等选人' : data.my_application.status}`);
|
|
458
458
|
}
|
|
459
|
+
// dispatch window still collecting sign-ups: the list is empty on purpose, say so (Echo #187)
|
|
460
|
+
if (data.dispatch && data.dispatch.phase === 'collecting') {
|
|
461
|
+
const n = Number(data.dispatch.reported_count) || 0;
|
|
462
|
+
lines.push(` 📋 报名窗口收集中${n > 0 ? `(已有 ${n} 人报名)` : ''}:现在看不到名单,窗口结束后公布前 5 名`);
|
|
463
|
+
}
|
|
459
464
|
if (data.tags && data.tags.length > 0) lines.push(` 标签:${data.tags.join(', ')}`);
|
|
460
465
|
// Prd 22: the price window this seller may quote (whole-order price; lower or higher) and the owner-only "looked, did not apply" record
|
|
461
466
|
const qr = data.quote_range;
|