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

Command API tweaks #2159

Merged
merged 13 commits into from
Jul 11, 2020
Merged

Command API tweaks #2159

merged 13 commits into from
Jul 11, 2020

Conversation

dualspiral
Copy link
Contributor

@dualspiral dualspiral commented Jul 6, 2020

Tweaks for commands, from as I implement and realise I did things wrong (or can add super simple things).

@dualspiral dualspiral added system: command api: 8 (u) version: 1.16 (unsupported since Oct 17th 2023) labels Jul 6, 2020
@dualspiral dualspiral self-assigned this Jul 6, 2020
Copy link
Member

@ST-DDT ST-DDT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you change the following?

- Supplier<Iterable<String>> literalSupplier
+ Supplier<? extends Collection<String>> literalSupplier

@@ -168,7 +224,7 @@ public static TextBuilder textBuilder() {
* without such a prefix
* @return This builder, for chaining.
*/
CatalogedTypeBuilder<T> prefix(String prefix);
CatalogedTypeBuilder<T> defaultNamespace(String prefix);
Copy link
Member

@ST-DDT ST-DDT Jul 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would go for tryNamespace/tryDefaultNamespace or something similar because you can have multiple. defaultNamespace sounds like you can only define one.

@dualspiral dualspiral force-pushed the api8/commands-tweaks branch 6 times, most recently from 60e8d26 to 768ba36 Compare July 10, 2020 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: 8 (u) version: 1.16 (unsupported since Oct 17th 2023) system: command
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants