Implement import and export actions for togglcsv
The "export"-action exports all time records from your Toggl account
starting from a given start date until today:
togglcsv export <Your-Toggl-API-Token> <Start-Date (e.g. 2015-01-23)>
The "import"-action uploads given time records into your Toggl account.
Pipe the a given CSV file into togglcsv and import them into your
Toggl account:
togglcsv import <Your-Toggl-API-Token> < report.csv
The CSV-file format has seven columns:
- Start date (ISO 8601)
- Stop date (ISO 8601)
- Workspace name (Note: The workspace must exist before the import)
- Project name
- Client name
- Tags (comma separated)
- Description of the time record
Run unit tests:
make test
Create a code coverage report:
make coverage
Build/install:
make install
Cross Compile for Windows, Linux and Mac OS:
make crosscompile
togglcsv itself is licensed under Apache 2.0 and uses the following
external packages which are licensed under their respective licenses:
- https://github.com/andreaskoch/togglapi package (v0.4.1) for the communication
with the Toggl API. - https://gopkg.in/alecthomas/kingpin.v2 for the command line options
- https://gopkg.in/cheggaaa/pb.v1 for the import progress bar
- https://github.com/jinzhu/now for calculating the end of months