Skip to content

Commit 7fba34c

Browse files
committed
chore: rename update command to install and add make targets
- Rename `update` CLI command to `install` for clarity - Add `make install` target to package and open workflow - Add `make package` target for creating .alfredworkflow file
1 parent 1b84ca6 commit 7fba34c

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1-
.PHONY: link unlink
1+
.PHONY: link unlink install package
22

33
link: ## Link workflow to Alfred for development
44
@uv run bin/release.py link
55

66
unlink: ## Unlink workflow from Alfred
77
@uv run bin/release.py unlink
88

9+
install: ## Package and open workflow for installation
10+
@uv run bin/release.py install
11+
12+
package: ## Create .alfredworkflow package
13+
@uv run bin/release.py package
14+
915
help: ## Show this help
1016
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'
1117

bin/release.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,8 @@ def sync_defaults(check: bool):
294294

295295

296296
@cli.command()
297-
def update():
298-
"""Package and open workflow for manual update."""
297+
def install():
298+
"""Package and open workflow for installation."""
299299
ctx = click.get_current_context()
300300
ctx.invoke(package)
301301
subprocess.run(["open", str(ROOT / WORKFLOW_NAME)], check=True)

0 commit comments

Comments
 (0)