From 49e068c5a316f9989e6f5c899dc2a5d0e0e295ae Mon Sep 17 00:00:00 2001 From: Abraham Toriz Date: Sun, 25 Sep 2022 18:14:06 -0400 Subject: [PATCH] more docs for some commands --- docs/source/index.rst | 225 ++++++++++++++++++++++++++++++++++++++++-- src/main.rs | 5 +- 2 files changed, 222 insertions(+), 8 deletions(-) diff --git a/docs/source/index.rst b/docs/source/index.rst index f849105..8201ade 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -87,17 +87,226 @@ Tutorial yo, doc this -Commands --------- +Subcommands +----------- -.. note:: +t-archive +......... - TODO finish this +``t a|archive [OPTIONS] [SHEET]`` -t-in +By default this command will ask for you confirmation, then archive ALL entries +in the current timesheet. Pass ``--fake`` to only display the entries using the +``text`` formatter (useful if you want to make sure that the archived +time/entries are correct). + +Using ``--start`` and ``--end`` you can further limit the period of time that +will be archived (See **Specifying times** section of the docs on the accepted +formats). You can use ``--grep`` to only archive certain entries that match the +given regular expression. + +If what you need is to archive a specific elapsed time, for example only 15 +hours out of however many the timesheet has use ``--time`` with the amount of +hours you want to archive. + +**Options** + +-f, --fake + Don't actually archive the entries, just display them + +-e, --end