Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
- `src/` — Rust 2021 code
Sign in to like and favorite skills
src/ — Rust 2021 code
src/main.rs — CLI entry (op-dbus)src/state/ — plugin framework (manager.rs, plugin.rs, plugins/ with net.rs, systemd.rs)src/native/ — direct protocol clients (ovsdb_jsonrpc.rs, rtnetlink_helpers.rs)src/blockchain/ — footprint + streaming auditbuild.sh, install.sh, test-safe.sh, test-introspection.shexample-state.jsoncargo build --release (or ./build.sh) — produce optimized binary.target/release/op-dbus ... — execute CLI locally.cargo test -q — run fast, focused tests.sudo ./test-safe.sh — read‑only checks against host../test-introspection.sh — showcase model + schema.RUST_LOG=op_dbus=debug op-dbus query — troubleshoot behavior.cargo fmt; lint with cargo clippy -- -D warnings.snake_case; types/enums CamelCase; functions/vars snake_case; constants SCREAMING_SNAKE_CASE.snake_case; enum strings may be kebab-case (e.g., "type": "ovs-bridge").set -e (prefer set -euo pipefail); script filenames kebab-case.zbus in code and busctl in scripts/tests. Then use OVSDB JSON-RPC (for OVS) and rtnetlink (for kernel networking).ovs-vsctl, nmcli, ip, ifconfig, ovs-ofctl, brctl.zbus on the system bus (/var/run/dbus/system_bus_socket); busctl is the only allowed CLI for D-Bus introspection/verification.src/native/ovsdb_jsonrpc.rs (/var/run/openvswitch/db.sock).src/native/rtnetlink_helpers.rs.#[cfg(test)]; use tests/ for integration.cargo test.op-dbus diff output before apply in PRs.op-dbus query/diff/apply output/var/run/dbus/system_bus_socket, /var/run/openvswitch/db.sock.op-dbus diff /etc/op-dbus/state.json before apply.