GothenburgBitFactory / GothenburgBitFactory/timewarrior
How to debug extensions?
- Dominant language
- C++
- Stars
- 1.7k
- Forks
- 117
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 5
Description
How can I simulate the input to an extension? It might be helpful if there was a way to run `timew export` in a way that would create extension-input format.
I worked around this with a special extension, verbatim:
```bash
#!/bin/sh
env > /tmp/timew-dump.env.txt
cat > /tmp/timew-dump.txt
echo Dumped to '/tmp/timew-dump*'
exit 0
# Saved in ~/.timewarrior/extensions/verbatim
```
Then `timew report verbatim` will create the file `/tmp/timew-dump.txt` containing:
```
color: on
confirmation: on
debug: off
journal.size: -1
… etc
```
Is there a better way, or should this be included as a feature?
Thanks!
Contributor guide
Assessment
This issue has not been assessed yet.