Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:alexander-akhmetov/python-shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Akhmetov committed Mar 5, 2019
2 parents a5cd175 + 8fe280f commit 04373cb
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM python:3.7-alpine3.8

RUN pip install python-shortcuts==0.10.0

ENTRYPOINT ["shortcuts"]
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ release-pypi:

isort-fix:
isort -rc shortcuts


docker-build-cli:
test -n "$(TAG)"
docker build -t akhmetov/shortcuts-cli:$(TAG) .
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,31 @@ shortcuts https://www.icloud.com/shortcuts/... my_shortcut.toml # or my_shortcu

And it will download this shortcut and save it in `toml` or `shortcut` format.

### Docker

It's possible to use [pre-built Docker container](https://cloud.docker.com/u/akhmetov/repository/docker/akhmetov/shortcuts-cli) with python-shortcuts inside:

```shell
# convert s.toml from the current directory into s.shortcut

docker run -v $(pwd):/files akhmetov/shortcuts-cli /files/s.toml /files/s.shortcut


docker run -v $(pwd):/files akhmetov/shortcuts-cli --help

usage: shortcuts [-h] [--version] [file] [output]

Shortcuts: Siri shortcuts creator

positional arguments:
file Input file: *.(toml|shortcut|itunes url)
output Output file: *.(toml|shortcut)

optional arguments:
-h, --help show this help message and exit
--version Version information
```

## Development

### Tests
Expand Down

0 comments on commit 04373cb

Please sign in to comment.