feat: sims cli as python package
This commit is contained in:
13
Makefile
13
Makefile
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user