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

Add support for anchored flags. #3083

Merged
merged 1 commit into from
Jul 24, 2020
Merged

Add support for anchored flags. #3083

merged 1 commit into from
Jul 24, 2020

Conversation

dualspiral
Copy link
Contributor

@dualspiral dualspiral commented Jul 21, 2020

SpongeAPI | SpongeCommon

They work similarly to before, but are anchored to the command, so come before everything else.

Also, redone some of the parameter translator, because flags necessesitated it.

Also tweaked execute method as a redirect would sometimes mean a command would not fail even if there was no execution path. I need to test this with other commands first - so this isn't ready to merge just yet. looks fine, tested with a few redirected commands.

@dualspiral dualspiral self-assigned this Jul 21, 2020
@dualspiral dualspiral force-pushed the api8/flags branch 2 times, most recently from 439a5dd to db12db3 Compare July 21, 2020 22:40
@dualspiral dualspiral force-pushed the api8/flags branch 5 times, most recently from 2d7f3e4 to 993d913 Compare July 24, 2020 16:42
They work similarly to before, but are anchored to the command, so come before everything else.

Other updates:

* Tweaked execute method as a redirect would sometimes mean a command would not fail even if there was no execution path. I need to test this with other commands first.
* Create the skeleton of the /sponge chunks command - for this, I've opted not to use flags because they were incorrectly being used as mandatory arguments - might use them for config, depending on how that goes
* Make ResourceKey a first class parsable citizen
* Catalog types properly use the ResourceKey parser now
@dualspiral dualspiral merged commit d309aee into api-8 Jul 24, 2020
@dualspiral dualspiral deleted the api8/flags branch July 24, 2020 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant