docs: add simple plugin example to README
This commit is contained in:
parent
fdb5e223f3
commit
3646d92a5a
1 changed files with 8 additions and 1 deletions
|
|
@ -1311,7 +1311,14 @@ picoclaw service --help
|
||||||
picoclaw launcher
|
picoclaw launcher
|
||||||
```
|
```
|
||||||
|
|
||||||
Plugins are executables in `~/.picoclaw/plugins/`. If a plugin is named `picoclaw-service`, you can run it as `picoclaw service` (prefix match).
|
Create a plugin:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# ~/.picoclaw/plugins/picoclaw-hello
|
||||||
|
#!/bin/bash
|
||||||
|
echo "Hello from plugin!"
|
||||||
|
echo "Args: $@"
|
||||||
|
```
|
||||||
|
|
||||||
For programmatic use, hide the banner:
|
For programmatic use, hide the banner:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue