Board kit command

link.retarget

Retarget links

Re-points every card that links to a moved or renamed workspace file or folder at its new path.

Kit
Board 0.1.0 (.kboard)
Changes the document
yes

Parameters

Parameters of link.retarget
NameTypeRequiredDescription
fromstringyesThe workspace path cards link to now, a file or a folder (KitLinks LK2)
tostringyesThe workspace path they link to instead; a folder's cards keep the rest of their path

Call through board_run

text
board_run {
  "path": "<file>.kboard",
  "steps": [{ "command": "link.retarget", "params": { "from": <string>, "to": <string> } }]
}

The required parameters, with placeholders for their types: not a tested example. board_run answers the step’s result in completed[i].result.

Result

The kit gives no result schema for this command.

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "from": {
      "description": "The workspace path cards link to now, a file or a folder (KitLinks LK2)",
      "type": "string"
    },
    "to": {
      "description": "The workspace path they link to instead; a folder's cards keep the rest of their path",
      "type": "string"
    }
  },
  "required": [
    "from",
    "to"
  ],
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (board_commands through @kition/[email protected], built from KitionAI/kition-board@e78c190). As data: commands.jsonl.