Rename tag commands to start with tags_

pull/278/head
Ivan Habunek 2022-12-31 09:13:25 +01:00
rodzic ce560eacc7
commit 6f9ef69277
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: F5F0623FF5EBCB3D
2 zmienionych plików z 11 dodań i 11 usunięć

Wyświetl plik

@ -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("<green>✓ You are now following #{}</green>".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("<green>✓ You are no longer following #{}</green>".format(tn))
def followed_tags(app, user, args):
def tags_followed(app, user, args):
response = api.followed_tags(app, user)
print_tag_list(response)

Wyświetl plik

@ -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 = [