From 30d1ba2b2a9048501655860f068970cdfbe2fce0 Mon Sep 17 00:00:00 2001 From: Thomas Lauf Date: Wed, 28 Dec 2022 21:52:48 +0100 Subject: [PATCH] Add example descriptions Signed-off-by: Thomas Lauf --- doc/man1/timew-export.1.adoc | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/doc/man1/timew-export.1.adoc b/doc/man1/timew-export.1.adoc index a34771f7..a98d3a4b 100644 --- a/doc/man1/timew-export.1.adoc +++ b/doc/man1/timew-export.1.adoc @@ -8,10 +8,23 @@ timew-export - export tracked time in JSON *timew export* [__**...**] | [[__] [__**...**]] == DESCRIPTION -Exports all the tracked time in JSON format. Supply either a list of interval IDs (e.g. `@1 @2`), or optional filters (see **timew-ranges(7)** and/or **timew-tags(1)**) +Exports all the tracked time in JSON format. + +Supply either a list of interval IDs (e.g. `@1 @2`), or optional filters (see **timew-ranges(7)** and/or **timew-tags(1)**) == EXAMPLES -For example: - $ timew export from 2016-01-01 for 3wks tag1 - $ timew export @1 @3 @7 +*Export all intervals*:: +``` +$ timew export +``` + +*Export intervals filtered by range and tag*:: +``` +$ timew export from 2016-01-01 for 3wks tag1 +``` + +*Export intervals by their ids*:: +``` +$ timew export @1 @3 @7 +```