@greatwait/cli 0.2.2 → 0.2.3

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/commands.js CHANGED
@@ -812,6 +812,10 @@ const schedulesRead = async (runtime, args) => {
812
812
  autoPauseAfterFailures: view.schedule.autoPauseAfterFailures,
813
813
  consecutiveFailedRuns: view.schedule.consecutiveFailedRuns,
814
814
  autoPauseReason: view.schedule.autoPauseReason,
815
+ ...(view.schedule.external_identifier === undefined
816
+ ? {}
817
+ : { external_identifier: view.schedule.external_identifier }),
818
+ ...(view.schedule.tags === undefined ? {} : { tags: view.schedule.tags }),
815
819
  version: view.schedule.version,
816
820
  },
817
821
  human: [
@@ -825,6 +829,12 @@ const schedulesRead = async (runtime, args) => {
825
829
  `Paused ${String(view.schedule.autoPauseReason.failedRuns)} failed runs; ${view.schedule.autoPauseReason.status === undefined ? "no HTTP response" : `HTTP ${String(view.schedule.autoPauseReason.status)}`} (${view.schedule.autoPauseReason.diagnostic}) at ${view.schedule.autoPauseReason.pausedAt}`,
826
830
  ]),
827
831
  `Recurrence ${view.schedule.recurrence.kind}`,
832
+ ...(view.schedule.external_identifier === undefined
833
+ ? []
834
+ : [`External ID ${view.schedule.external_identifier}`]),
835
+ ...(view.schedule.tags === undefined || view.schedule.tags.length === 0
836
+ ? []
837
+ : [`Tags ${view.schedule.tags.join(", ")}`]),
828
838
  `Version ${String(view.schedule.version)}`,
829
839
  ...(etag === undefined ? [] : [`ETag ${etag}`]),
830
840
  ].join("\n"),
package/dist/operate.js CHANGED
@@ -359,9 +359,13 @@ const schedulesList = async (runtime, args) => {
359
359
  return listing(runtime, args, {
360
360
  columns: ["STATUS", "NAME", "RECURRENCE", "DELIVERS TO", "SCHEDULE"],
361
361
  command: `${runtime.programName} schedules list${endpoint === undefined ? "" : ` --endpoint ${endpoint}`}${correlationCommand(args)}`,
362
- empty: endpoint === undefined
363
- ? "This project has no schedules yet."
364
- : "No schedule delivers to that destination.",
362
+ // An empty filtered page answers the filter, not the project: "no
363
+ // schedules yet" read as the project being empty when nothing matched.
364
+ empty: Object.keys(filters).length > 0
365
+ ? "No schedule matches these filters."
366
+ : endpoint === undefined
367
+ ? "This project has no schedules yet."
368
+ : "No schedule delivers to that destination.",
365
369
  read: (request) => page("schedules.list", () => active.client.request("schedules_list", {
366
370
  ...request,
367
371
  ...(endpoint === undefined ? {} : { endpoint }),
package/package.json CHANGED
@@ -7,8 +7,8 @@
7
7
  "url": "https://github.com/flowxo/greatwait/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@greatwait/api-client": "0.2.2",
11
- "@greatwait/contracts": "0.2.2"
10
+ "@greatwait/api-client": "0.2.3",
11
+ "@greatwait/contracts": "0.2.3"
12
12
  },
13
13
  "description": "The GreatWait command line: sign in, schedule a call to a URL, and read its delivery outcome over the public API.",
14
14
  "engines": {
@@ -48,5 +48,5 @@
48
48
  },
49
49
  "sideEffects": false,
50
50
  "type": "module",
51
- "version": "0.2.2"
51
+ "version": "0.2.3"
52
52
  }