aboutsummaryrefslogtreecommitdiff
path: root/GETTING-STARTED.md
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-08-01 22:42:41 +0800
committer魏曹先生 <1992414357@qq.com>2026-08-01 22:42:41 +0800
commit0f9ca0745e3e80c751404f45cb2b97d4d14c97d3 (patch)
tree20d1c5c93b11397db27263820e3863bbb2ac11e5 /GETTING-STARTED.md
parente2050f6b6694733931edc6363194197c323b7d25 (diff)
refactor!: rename `extra_macros` feature to `extras`HEADmainfeat/new-pipeline-model
Update all references across docs, examples, and configuration files to use the shorter `extras` feature name.
Diffstat (limited to 'GETTING-STARTED.md')
-rw-r--r--GETTING-STARTED.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/GETTING-STARTED.md b/GETTING-STARTED.md
index 516122e..7d451e0 100644
--- a/GETTING-STARTED.md
+++ b/GETTING-STARTED.md
@@ -49,10 +49,10 @@ fn main() {
}
```
-Mingling also supports an abbreviated form (with the `extra_macros` feature):
+Mingling also supports an abbreviated form (with the `extras` feature):
```rust
-// Features: ["extra_macros"]
+// Features: ["extras"]
// Auto-generates CMDGreet / EntryGreet from "greet"
dispatcher!("greet");
@@ -192,7 +192,7 @@ The flow is:
With the `comp` feature, Mingling provides a fully dynamic completion system. You write a function that returns `Suggest` based on the current shell context, and Mingling generates the completion scripts for bash, zsh, fish, and pwsh.
```rust
-// Features: ["comp", "extra_macros"]
+// Features: ["comp", "extras"]
use mingling::{macros::suggest, ShellContext, Suggest};
@@ -246,7 +246,7 @@ mingling::build::build_comp_scripts(env!("CARGO_PKG_NAME")).unwrap();
For enum-based completions, use `suggest_enum!`:
```rust
-// Features: ["comp", "extra_macros"]
+// Features: ["comp", "extras"]
use mingling::{ShellContext, Suggest};
use mingling::macros::suggest_enum;
@@ -323,7 +323,7 @@ Two built-in fallback types are always available:
Chain and renderer functions can accept **additional parameters** for the program's global state. Resources are singleton values registered with `program.with_resource(...)`.
```rust
-// Features: ["picker", "extra_macros"]
+// Features: ["picker", "extras"]
use std::path::PathBuf;
@@ -492,7 +492,7 @@ fn main() {
Mingling provides built-in REPL setups:
```rust
-// Features: ["repl", "extra_macros"]
+// Features: ["repl", "extras"]
use mingling::{
res::ResREPL,