plc
# plc
Programmable logic controller programming helper
## Commands
### `status`
```bash
scripts/script.sh status
```
Show current status
### `add`
```bash
scripts/script.sh add
```
Add new entry
### `list`
```bash
scripts/script.sh list
```
List all entries
### `search`
```bash
scripts/script.sh search
```
Search entries
### `remove`
```bash
scripts/script.sh remove
```
Remove entry by number
### `export`
```bash
scripts/script.sh export
```
Export data to file
### `stats`
```bash
scripts/script.sh stats
```
Show statistics
### `config`
```bash
scripts/script.sh config
```
View or set config
### `help`
```bash
scripts/script.sh help
```
### `version`
```bash
scripts/script.sh version
```
## Configuration
Use `scripts/script.sh config <key> <value>` to set preferences.
| Variable | Required | Description |
|----------|----------|-------------|
| `PLC_DIR` | No | Data directory (default: ~/.plc/) |
## Data Storage
All data stored in `~/.plc/` using JSONL format (one JSON object per line).
## Output
Structured output to stdout. Exit code 0 on success, 1 on error.
---
*Powered by BytesAgain | bytesagain.com | hello@bytesagain.com*
标签
skill
ai