From 6f9ef6927743fee9c7f6fbd0ede2895baa9c05e4 Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Sat, 31 Dec 2022 09:13:25 +0100 Subject: [PATCH] Rename tag commands to start with tags_ --- toot/commands.py | 6 +++--- toot/console.py | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/toot/commands.py b/toot/commands.py index b9819dd..5287946 100644 --- a/toot/commands.py +++ b/toot/commands.py @@ -324,19 +324,19 @@ def followers(app, user, args): print_acct_list(response) -def follow_tag(app, user, args): +def tags_follow(app, user, args): tn = args.tag_name if not args.tag_name.startswith("#") else args.tag_name[1:] api.follow_tag(app, user, tn) print_out("✓ You are now following #{}".format(tn)) -def unfollow_tag(app, user, args): +def tags_unfollow(app, user, args): tn = args.tag_name if not args.tag_name.startswith("#") else args.tag_name[1:] api.unfollow_tag(app, user, tn) print_out("✓ You are no longer following #{}".format(tn)) -def followed_tags(app, user, args): +def tags_followed(app, user, args): response = api.followed_tags(app, user) print_tag_list(response) diff --git a/toot/console.py b/toot/console.py index 1e8ba63..b0d007e 100644 --- a/toot/console.py +++ b/toot/console.py @@ -559,23 +559,23 @@ ACCOUNTS_COMMANDS = [ TAG_COMMANDS = [ Command( - name="follow_tag", + name="tags_followed", + description="List hashtags you follow", + arguments=[], + require_auth=True, + ), + Command( + name="tags_follow", description="Follow a hashtag", arguments=[tag_arg], require_auth=True, ), Command( - name="unfollow_tag", + name="tags_unfollow", description="Unfollow a hashtag", arguments=[tag_arg], require_auth=True, ), - Command( - name="followed_tags", - description="List hashtags you follow", - arguments=[], - require_auth=True, - ), ] COMMAND_GROUPS = [