Lightbulb By ExampleΒΆ

Preface

Introduction to Lightbulb - project setup and first steps.

Preface
Commands

What is a command and how to create them.

Commands
Options

Taking user input for commands and how to use it.

Options
Context Menus

What are context menu commands - how and why to use them.

Context Menus
Groups

Why use a command group, and potential pitfalls using them.

Groups
Dependencies

What is dependency injection - accessing objects wherever you need them without global state.

Dependencies
Hooks

Modifying command behaviour and conditionally blocking execution.

Hooks
Error Handling

Catching errors and how to display them to the user.

Error Handling
Extensions

Splitting your application into multiple files - how extensions enable this.

Extensions
Autocomplete

Dynamically suggesting option values to your users.

Autocomplete
Localization

Catering to the international audience - how to translate command names and more.

Localization
Appendix

Further reading; more advanced concepts and techniques.

Appendix