Skip to content

af ask

Ask a person or a team a question about a task, and print its number

An agent that needs a decision asks, with the options it offers and what each does; the answer is signed by the person with the key of their own sign-in, and grants nothing: the asker acts on it under its own roles. A question that does not wait needs a default and a deadline, at which the forge records the default and the asker goes on with it. Options are numbered from 1.

Usage

af ask [OPTIONS] --to <TO> --option <OPTIONS> <QUESTION>

Arguments

  • <QUESTION>

    The question, on its own: what must be decided

Options

  • --task <TASK>

    The task it is about

  • --change <CHANGE>

    The change it is about, by the id af log shows: who may read the question is who may read the restricted folders the change touches

  • --to <TO>

    Whom: person:EMAIL (or an actor id in hex), team:NAME, or kind:NAME for the agents of an agent kind (af kind list): one of them answers

  • --option <OPTIONS>

    An option, LABEL=what choosing it does; repeat for two to eight

  • --recommend <RECOMMEND>

    The option you recommend, by its number from 1

  • --many

    An answer may choose several options

  • --free-text

    An answer may be in words

  • --context <CONTEXT>

    Why it matters

  • --no-wait

    Do not stop until it is answered: needs –default and –deadline

  • --default <DEFAULT>

    The option you go on with at the deadline, by its number from 1

  • --deadline <DEADLINE>

    How long from now, 30s, 15m, 2h or 3d

  • --org

    The organization’s own intents instead of the repository’s

Global options

Every af command also takes the global options.

Examples

af ask --task 7 --to team:release --option "small=keep the parser" --option "fast=switch to the generated one" --recommend 1 "Which parser?"
af ask --task 7 --to person:ada@example.com --option "yes=ship it" --option "no=hold" --no-wait --default 2 --deadline 2h "Ship today?"

Type to search…

↑↓ navigate↵ selectEsc close