You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-5Lines changed: 34 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -175,18 +175,47 @@ Before you can do anything productive with `slic`, you need to tell it which
175
175
project you wish to use and then you can initialize the project, run tests, and
176
176
execute other commands to your heart's content!
177
177
178
-
Assuming you have a plugin called `the-events-calendar` in the plugins directory
179
-
where you ran `slic here`, you can tell `slic` you want to take actions on that
180
-
plugin using the following command:
178
+
The `slic use` command offers two ways to select your target:
179
+
180
+
#### Interactive Mode (No Arguments)
181
+
182
+
When you run `slic use` without any arguments, it opens an interactive Terminal User Interface (TUI) that lets you browse and select from available targets:
181
183
182
184
```bash
183
-
slic use the-events-calendar
185
+
slic use
184
186
```
185
187
186
-
> For more information on this command, run `slic help use`.
188
+
This launches an interactive menu with these features:
189
+
-**Browse targets**: Navigate through all available plugins/themes with arrow keys (↑↓)
190
+
-**Fuzzy search**: Type to filter targets instantly (case-insensitive substring matching)
191
+
-**Current target indicator**: See which target is currently active (marked with ✓)
192
+
-**Scroll indicators**: Visual cues when there are more items above/below the visible window
193
+
-**Keyboard controls**:
194
+
-`↑↓` Arrow keys to navigate
195
+
- Type to filter/search
196
+
-`Enter` to select
197
+
-`ESC` or `Ctrl+C` to cancel
198
+
-**Cross-platform**: Works on Windows, macOS, and Linux
199
+
200
+
The interactive mode is especially helpful when:
201
+
- You're not sure of the exact target name
202
+
- You want to see all available options at once
203
+
- You need to quickly switch between targets
187
204
188
205

189
206
207
+
#### Direct Mode (With Target Name)
208
+
209
+
If you already know which target you want, you can specify it directly:
210
+
211
+
```bash
212
+
slic use the-events-calendar
213
+
```
214
+
215
+
This immediately switches to the specified target without showing the interactive menu.
216
+
217
+
> For more information on this command, run `slic help use`.
218
+
190
219
### Initialize your project
191
220
192
221
With your desired plugin containing directory set, you will need to initialize plugins so that they are prepped and ready
Copy file name to clipboardExpand all lines: changelog.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
9
9
### Changed
10
10
- Breaking Change - The `slic here` command will now create a new stack for the current path instead of changing the context of the previously only stack to the path.
11
-
- Breaking Change - The `XDK` configuration variable (`slic` by default) is now used as **root** for each stack IDE key. An `XDK` of `slic` will create stack IDE keys like `slic_<stack_hash>` and not just `slic` as it was before.
11
+
- Breaking Change - The `XDK` configuration variable (`slic` by default) is now used as **root** for each stack IDE key. An `XDK` of `slic` will create stack IDE keys like `slic_<stack_hash>` and not just `slic` as it was before.
12
12
13
13
### Added
14
14
- Multi-path support with a 1:1 mapping between stacks and paths.
15
+
- Interactive Terminal User Interface (TUI) for the `slic use` command. Running `slic use` without arguments now opens an interactive selection menu with fuzzy search and current selection indicator.
15
16
- Git worktree multi-stack support for concurrent development workflows
16
17
- New `slic worktree` command with subcommands:
17
18
-`slic worktree add <branch>` - Create a new git worktree with dedicated stack
Copy file name to clipboardExpand all lines: slic.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,18 @@ slic run wpunit
63
63
```
64
64
65
65
Since the command might potentially run on any of the plugins maintained by the Products team, you'll need to tell the `slic` command what plugin you're currently working on with the `use` sub-command.
66
-
You can change the plugin you want to run tests on by using the `slic use` command again at any moment. If you want, now to run Event Tickets tests, you could just use:
66
+
67
+
### Interactive Target Selection
68
+
69
+
The `slic use` command now provides an interactive Terminal User Interface (TUI) when called without arguments:
70
+
71
+
```bash
72
+
slic use
73
+
```
74
+
75
+
This opens an interactive menu that allows you to browse all available targets, see the current one, and select a new one.
76
+
77
+
You can also directly specify a target to skip the interactive menu:
0 commit comments