tme

Toggl like Time Manager
git clone git://gtms.dev:tme
Log | Files | Refs

commit 60ea05085478391466ad95191d8510c8080178f5
parent e95c7804bd95f4bf6f426d3826219829e8e5445b
Author: Tomas Nemec <owl@gtms.dev>
Date:   Thu, 13 Apr 2023 16:59:50 +0200

feat(move): WIP line up

Diffstat:
Mcommand.go | 12++++++++++++
Mmain.go | 2++
2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/command.go b/command.go @@ -321,3 +321,15 @@ func (c Command) Remove() { // - wait for user to confirm y/n // - remove } + +func (c Command) Move() { + if len(c.args) != 2 { + fmt.Fprintln(os.Stderr, "mv <group-from> <group-to>") + os.Exit(1) + } + + // TODO(tms) 12.04.23: + // - list (recursively?) numbered entries from <group-from> + // - ... _selection same as for removal_ ... + // - move +} diff --git a/main.go b/main.go @@ -44,6 +44,8 @@ func main() { command.Lsr() } else if cmd == "rm" { command.Remove() + } else if cmd == "mv" { + command.Move() } else if cmd == "report" { command.Report() } else if cmd == "status" {