-
Notifications
You must be signed in to change notification settings - Fork 108
Rewrite docs for new builder process #157
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #157 +/- ##
============================================
+ Coverage 97.83% 98.21% +0.37%
- Complexity 417 482 +65
============================================
Files 25 25
Lines 1294 1401 +107
============================================
+ Hits 1266 1376 +110
+ Misses 28 25 -3
Continue to review full report at Codecov.
|
README.md
Outdated
2. `addSplitItem` returns an instance of `SplitItemBuilder`, the main menu will take care of building all split items (and any submenu they might contain). | ||
3. You can call `addItem`, `addSubMenu` and `addStaticItem` on the `SplitItemBuilder`. | ||
4. Like when building submenus, you can call `end()` on the Split Item `SplitItemBuilder` instance to get the parent `CliMenuBuilder` back again. This is useful for chaining. | ||
1. The first parameter to `addSubMenu` is a closure, which will be invoked with a new instance of `SplitItemBuilder` which you can use to add items to the split item. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addSplitItem not addSubMenu
4. Like when building submenus, you can call `end()` on the Split Item `SplitItemBuilder` instance to get the parent `CliMenuBuilder` back again. This is useful for chaining. | ||
1. The first parameter to `addSubMenu` is a closure, which will be invoked with a new instance of `SplitItemBuilder` which you can use to add items to the split item. | ||
2. You can call `addItem`, `addSubMenu` and `addStaticItem` on the `SplitItemBuilder`. | ||
3. `SplitItemBuilder` has a fluent interface so you can chain method calls. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a note that like the addSubMenu, the closure used to build the splititem is also binded with the SplitItemBuilder
blablabla
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
No description provided.