Import Tasks¶
The tasks import command imports tasks and groups from a JSON file, creating, updating, or deleting records as needed.
Parameters¶
| Parameter | Description |
|---|---|
FILE |
JSON file to import (required, positional). |
🖥️ Basic Usage¶
Usage: easytask tasks import [OPTIONS] FILE
Import tasks and groups from a JSON file.
╭─ Arguments ─────────────────────────────────────────────────────────────────╮
│ * file PATH JSON file to import [required] │
╰─────────────────────────────────────────────────────────────────────────────╯
╭─ Options ───────────────────────────────────────────────────────────────────╮
│ --help -h Show this message and exit. │
╰─────────────────────────────────────────────────────────────────────────────╯
Example¶
Example — With Errors¶
Import complete: 3 created, 0 updated, 0 deleted
Errors:
- Task "invalid_task": missing required field 'cmd'