Skip to content

Conversation

@rattus-ratgirl
Copy link

@rattus-ratgirl rattus-ratgirl commented Nov 1, 2025

This PR ostensibly adds a flag .acl show [--pretty|-p] <acl> to the ACL show command. In actuality, it creates a group from the existing acl_show command and subcommands acl_pretty_show as acl_show_group.command("--pretty", aliases=["-p"]).

When used, the command output corresponds (almost) to the YAML representation of said ACL, formatted in the Discord Markdown 'dialect'. This allows user, role, and channel ids to be displayed with their corresponding mention tags. For example,

image

The YAML representation is not exact, since the topmost entry is given a - . This is intentional to improve readability. .acl show without the flag should always be used as the basis for modifying ACLs.

@rattus-ratgirl rattus-ratgirl force-pushed the feature/pretty-print-acls branch from de2168c to d31c803 Compare November 1, 2025 11:51
@rattus-ratgirl rattus-ratgirl requested a review from mniip November 1, 2025 11:55
@rattus-ratgirl rattus-ratgirl force-pushed the feature/pretty-print-acls branch from d6d37b1 to 27a2188 Compare November 1, 2025 12:07
@rattus-ratgirl rattus-ratgirl force-pushed the feature/pretty-print-acls branch from 27a2188 to b404099 Compare November 13, 2025 22:50
@rattus-ratgirl rattus-ratgirl requested a review from mniip November 13, 2025 22:51
@rattus-ratgirl rattus-ratgirl force-pushed the feature/pretty-print-acls branch from b404099 to 749d87c Compare November 13, 2025 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants