Skip to content

Commit

Permalink
fix: Add make cli helper back
Browse files Browse the repository at this point in the history
Dropped by 929daf4
  • Loading branch information
SilverRainZ committed Mar 12, 2024
1 parent 33c37f4 commit 34a5456
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ upload: dist
test-upload: dist
$(PY) -m twine upload --repository testpypi $</*

.PHONY: update-template
update-template:
$(PY) -m cruft update
# Usage: make cli args=--help
.PHONY: cli
cli:
$(PY) ./utils/cli.py --config ./utils/conf.py $(args)
2 changes: 1 addition & 1 deletion src/utils/cli.py → utils/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import os
import sys
sys.path.insert(0, os.path.abspath('sphinxnotes'))
sys.path.insert(0, os.path.abspath('src/sphinxnotes'))
import snippet.cli

snippet.cli.main()
File renamed without changes.

0 comments on commit 34a5456

Please sign in to comment.