Skip to content

Commit

Permalink
Merge pull request #70 from moiSentineL/rename
Browse files Browse the repository at this point in the history
rename commands to make it more coherent
  • Loading branch information
moiSentineL authored Aug 3, 2024
2 parents b01fdd8 + f9d6dfb commit f8e4ed1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions flomo/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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'."
)
Expand Down Expand Up @@ -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):
"""
Expand Down

0 comments on commit f8e4ed1

Please sign in to comment.