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

GH-310 Relax input restrictions on quoted strings #314

Merged
merged 2 commits into from
Nov 29, 2023
Merged

GH-310 Relax input restrictions on quoted strings #314

merged 2 commits into from
Nov 29, 2023

Conversation

huanmeng-qwq
Copy link
Contributor

Quoted strings should be an optional input method, rather than being able to only use " to input after the developer has defined annotations

@Command(name = "quoted")
class QuotedCommand {
    @Execute
    fun base(@Arg @Quoted arg: String) {
        /*
        /quoted 123
        arg = "123"
        
        /quoted "2345
        arg = "2345"
        
        /quoted "12345"
        arg = "12345"
        
        /quoted "12345 678
        arg = "12345 678"                        
        */
    }
}

@huanmeng-qwq huanmeng-qwq changed the title Relax input restrictions on quoted strings GH-314 Relax input restrictions on quoted strings Nov 28, 2023
@huanmeng-qwq huanmeng-qwq changed the title GH-314 Relax input restrictions on quoted strings GH-310 Relax input restrictions on quoted strings Nov 28, 2023
@Rollczi
Copy link
Owner

Rollczi commented Nov 29, 2023

Thanks @huanmeng-qwq ❤️

@Rollczi Rollczi merged commit 17fb2db into Rollczi:quoted-string Nov 29, 2023
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.

2 participants