Skip to content

Commit e4b0015

Browse files
committed
feat(import): add import command and test suite for importing prompt files
1 parent 1b1a750 commit e4b0015

3 files changed

Lines changed: 883 additions & 0 deletions

File tree

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ lint: # Run linter to check code style and errors @Quality
2626

2727
test: # Run all tests @Testing
2828
bash ./scripts/tests/apply.test.sh && echo "apply: ok"
29+
bash ./scripts/tests/import.test.sh && echo "import: ok"
2930

3031
clone-rt: # Clone the repository template into .github/skills/repository-template @Operations
3132
.github/skills/repository-template/scripts/git-clone-repository-template.sh
@@ -38,6 +39,11 @@ apply: # Copy prompt files assets to a destination repository; mandatory: dest=[
3839
$(if $(ai),,$(error ai is required. Usage: make apply dest=/path/to/destination ai=copilot|claude))
3940
./scripts/apply.sh "$(dest)" "$(ai)"
4041

42+
import: # Import changed prompt files from a destination repository; mandatory: dest=[path] ai=[copilot|claude]; optional: force|new=[true] @Operations
43+
$(if $(dest),,$(error dest is required. Usage: make import dest=/path/to/destination ai=copilot|claude))
44+
$(if $(ai),,$(error ai is required. Usage: make import dest=/path/to/destination ai=copilot|claude))
45+
./scripts/import.sh "$(dest)" "$(ai)"
46+
4147
count-tokens: # Count LLM tokens for key instruction packs; optional: args=[files/options] @Operations
4248
uv run --with tiktoken python scripts/count-tokens.py \
4349
$(if $(args),$(args), \
@@ -74,6 +80,7 @@ ${VERBOSE}.SILENT: \
7480
config \
7581
count-tokens \
7682
format \
83+
import \
7784
lint \
7885
lint-file-format \
7986
lint-markdown-format \

0 commit comments

Comments
 (0)