next

gest iteration next: return the next available task in an iteration.

struct Command

source

pub struct Command

Return the next available task in an iteration.

Field Type Description
id String The iteration ID or prefix.
agent Option<String> Agent name for assignment (requires –claim).
claim bool Claim the task (set to in-progress).
output json::Flags The output mode: normal, --json, --quiet or --raw.

Implements FromArgMatches, Args, Debug.

Command::call

source

pub async fn call(&self, context: &AppContext) -> Result<(), Error>

Pick the next unblocked open task in phase and priority order, optionally claiming and assigning it.

Parameter Type Description
context &AppContext the application context: settings, store and current project
returns Result<(), Error> Ok(()) when the command succeeds, or the error that stopped it.