Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(macro): add group macro #267

Open
wants to merge 16 commits into
base: current
Choose a base branch
from

Commits on May 15, 2024

  1. feat(macro): add group macro

    Adds the poise::group macro, which lets you group commands in a struct.
    
    Use `MyStruct::commands()` to get a vec of the commands.
    TitaniumBrain committed May 15, 2024
    Configuration menu
    Copy the full SHA
    93caa09 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2024

  1. Remove unnecessary use statement

    Removes a redundant use std::vec;
    TitaniumBrain committed May 16, 2024
    Configuration menu
    Copy the full SHA
    8aaaf6c View commit details
    Browse the repository at this point in the history
  2. Refactor group for readability

    Moves the body of group into a separate function and removes match in favour of ?
    TitaniumBrain committed May 16, 2024
    Configuration menu
    Copy the full SHA
    6da3446 View commit details
    Browse the repository at this point in the history
  3. Refactor is_command_attr

    More direct comparison, without iter, map and format!.
    TitaniumBrain committed May 16, 2024
    Configuration menu
    Copy the full SHA
    26498bf View commit details
    Browse the repository at this point in the history
  4. Refactor is_command_attr for simplicity

    Used a match over iterator items.
    Will now correctly handle paths with more than 2 segments.
    TitaniumBrain committed May 16, 2024
    Configuration menu
    Copy the full SHA
    36bf529 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2024

  1. Replace empty quote! with constructor

    Instead of quote!(), use proc_macro2::TokenStream::new()
    TitaniumBrain committed May 17, 2024
    Configuration menu
    Copy the full SHA
    5203830 View commit details
    Browse the repository at this point in the history
  2. Change comment style

    TitaniumBrain committed May 17, 2024
    Configuration menu
    Copy the full SHA
    3e7ca23 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8874415 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fb18eee View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

  1. Add example group test

    TitaniumBrain committed May 21, 2024
    Configuration menu
    Copy the full SHA
    90a243f View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2024

  1. Configuration menu
    Copy the full SHA
    a1cd35c View commit details
    Browse the repository at this point in the history
  2. Update group_testing example

    Gives better name to command.
    Adds necessary use's.
    TitaniumBrain committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    ff03d77 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2024

  1. Update CommandGroup doc

    TitaniumBrain committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    ecd5725 View commit details
    Browse the repository at this point in the history
  2. Change None check style

    TitaniumBrain committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    5e8c898 View commit details
    Browse the repository at this point in the history
  3. Change example to register commands globally

    Removes hardcoded guild id and registers commands globally.
    
    I had copied some test code and left that in.
    TitaniumBrain committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    3687fd8 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2024

  1. Configuration menu
    Copy the full SHA
    bb4665c View commit details
    Browse the repository at this point in the history