feat: sims cli as python package

This commit is contained in:
2026-05-03 22:19:52 +02:00
parent afcf8d51fe
commit 0cd58f4a1f
6 changed files with 171 additions and 60 deletions

View File

@@ -1,2 +1,15 @@
run:
python -m sims.main --config ./example-stylix-dev.yaml
# Talk to the running sims daemon over DBus.
# Usage: make cli list
# make cli finder
# make cli screenrec stop
# make cli ARGS="list --json" # for flags (make eats leading dashes)
ifeq (cli,$(firstword $(MAKECMDGOALS)))
CLI_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
$(eval $(CLI_ARGS):;@:)
endif
cli:
@python -m sims.cli $(if $(ARGS),$(ARGS),$(CLI_ARGS))