From f9d6dfbc080bda7d4bc15a84fc950d43a19813ce Mon Sep 17 00:00:00 2001 From: moiSentineL Date: Sat, 3 Aug 2024 13:12:35 +0530 Subject: [PATCH] rename commands to make it more coherent --- flomo/cli.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/flomo/cli.py b/flomo/cli.py index 1d44275..cd94115 100644 --- a/flomo/cli.py +++ b/flomo/cli.py @@ -128,13 +128,13 @@ def delete(session_ids: Tuple): print(e) -@flomo.command(aliases=["ch"]) +@flomo.command(aliases=["u"]) @click.argument("session_id") @click.option("-t", "--tag", help="Session Tag") @click.option("-n", "--name", help="Session Name") -def change(session_id: str, tag: str | None, name: str | None): +def update(session_id: str, tag: str | None, name: str | None): """ - Change session data. + Update session data. """ try: db = tracker.Tracker() @@ -148,7 +148,7 @@ def change(session_id: str, tag: str | None, name: str | None): print(e) -@flomo.command(aliases=["cf"]) +@flomo.command(aliases=["c"]) @click.option( "-n", "--notif", help="Set notification priority to 'off', 'normal', or 'high'." ) @@ -202,7 +202,7 @@ def config(notif: str, tag_color: str, default_session: str): print(e) -@flomo.command(aliases=["er"]) +@flomo.command(aliases=["e"]) @click.option("-c", "--clear", is_flag=True, help="Clear the error log.") def error(clear: bool): """