TriumphTeam / triumph-cmds

Spigot annotation command framework
MIT License
67 stars 20 forks source link

Allow parsing of string into Arguments object #68

Closed viveleroi closed 1 year ago

viveleroi commented 2 years ago

I need a way to turn a string of commands/arguments/etc into an Arguments object.

Our reasoning is because the same NamedArguments we use in-game can be set in config files as defaults or easily re-usable search params (and params to use for purging data). Because the user is not entering these values as a command, I need some way to parse them.

Maybe something like Arguments arguments = namedArguments.parse('prism lookup p:viveleroi since:3d')

c99SRS commented 1 year ago

HI @viveleroi can you assign this one to me under hacktoberfest22 tag?

viveleroi commented 1 year ago

I don't have access to that, sorry.

BlitzOffline commented 1 year ago

HI @viveleroi can you assign this one to me under hacktoberfest22 tag?

The repository already has the hacktoberfest tag so if you make the PR and it gets accepted until October 31st it will count.