Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initial implementation of scrap yard init/commit #36

Draft
wants to merge 13 commits into
base: trunk
Choose a base branch
from
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ docker run -i -t ghcr.io/tekknolagi/scrapscript:trunk apply "1 + 2"
docker run -i -t ghcr.io/tekknolagi/scrapscript:trunk repl
```

## Advanced usage

```bash
# Create a scrapyard
python3 scrapscript.py yard init /desired/path/to/your/scrapyard
# Evaluates the file and stores the serialized scrap object to the yard
python3 scrapscript.py yard commit /desired/path/to/your/scrapyard SCRAP_NAME SCRAPSCRIPT_FILE
```

## Running Tests

```bash
Expand Down
132 changes: 131 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ version = "0.1.0"

[tool.poetry.dependencies]
python = ">=3.8"
pygit2 = "^1.13.3"

[tool.poetry.group.dev.dependencies]
mypy = "^1.7.0"
Expand Down
Loading
Loading