README.md: add an example

This commit is contained in:
Rohan McGovern 2022-06-17 10:38:38 +10:00 committed by GitHub
parent 5c4e5354b2
commit e27033d1f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,2 +1,11 @@
# repo-autoindex-prototype
Generate static HTML indexes of various repository types
## Usage example
```
pip install repo-autoindex
REPO_URL=$(curl -s 'https://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f36&arch=x86_64' | egrep '^http' | head -n1)
repo-autoindex $REPO_URL
xdg-open index.html
```