Commit c213a04
committed
Add
The `import` command will take an array of JSON timeslips from STDIN
and batch create them using the API.
If the -U, -P or -T flags are specified, it will override the user,
project or task values in each timeslip to be the ones matched. This
allows you to copy or move existing timeslips for to a new user or an
alternative project.
The timeslip objects must be contained in a single JSON array – which
is not the output created by this tool (it creates a stream). Thus you
need to pass the output from `timeslips list` through `jq -s` before
piping it into `timeslips import`:
fa timeslips list … | jq -s | fa timeslips import …import command for bulk timeslip creation1 parent d3fa0da commit c213a04
2 files changed
Lines changed: 32 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
161 | 192 | | |
162 | 193 | | |
163 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
0 commit comments