create
gest iteration create: create a new iteration.struct Command
pub struct CommandCreate a new iteration.
| Field | Type | Description |
|---|---|---|
title |
String | The iteration title. |
description |
Option<String> | The iteration description. |
metadata |
Vec<String> | Set a metadata key=value pair (repeatable; supports dot-paths and scalar inference). |
metadata_json |
Vec<String> | Merge a JSON object into metadata (repeatable; applied after –metadata pairs). |
status |
Option<String> | Set the initial status. |
tag |
Vec<String> | Add a tag (may be repeated; comma-separated values split into multiple tags). |
output |
json::Flags | The output mode: normal, --json, --quiet or --raw. |
Implements FromArgMatches, Args, Debug.
Command::call
pub async fn call(&self, context: &AppContext) -> Result<(), Error>Insert a new iteration with optional initial status and tags within a recorded transaction.
| 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. |