Skip to content

Commit

Permalink
while run ci, won't update local files (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemia authored Mar 18, 2024
1 parent 13197be commit c7d2f27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/scripts/code_gen/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ def gen_option_info() -> list[FFMpegOption]:


@app.command()
def generate() -> None:
outpath = Path(__file__).parent.parent.parent / "ffmpeg"
def generate(outpath: Path = None) -> None:
if not outpath:
outpath = Path(__file__).parent.parent.parent / "ffmpeg"

ffmpeg_filters = []

Expand Down
6 changes: 5 additions & 1 deletion src/scripts/code_gen/tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
from pathlib import Path
from tempfile import TemporaryDirectory

from ..cli import generate


def test_generate() -> None:
generate()
outpath = Path(TemporaryDirectory().name)
generate(outpath)

0 comments on commit c7d2f27

Please sign in to comment.