Oko/Docs

Command reference

oko work resources ask

Asks the operator, through `oko asks`, for each resource that would end the work sooner by more than the declared hours, with the gain and the declared cost; when the serial gates are the bottleneck the one ask is for their repair, since no added hardware speeds a gate up.

Invocation#

Command
oko work resources ask --add N [--hours N] [--all] [--json]

Inputs and options#

  • The declaration of `oko work resources declare`; the scenarios of `oko work resources --add N`.

Output and state effect#

  • Prints {threshold, scenarios, asked: [{ask, question, detail, deliveries}], notAsked: [{resource, gainHours, why}]}. Nothing is asked when no resource passes the threshold.

Refusals and safe exits#

  • “oko work resources ask: no gain threshold is declared at <path>; the operator declares it with `oko work resources declare --gain-hours H --by operator [--cost RESOURCE=TEXT]`”.
  • The refusals of `oko work resources` and of `oko asks ask`.

CLI reference#