Skip to content

Commit 58bc866

Browse files
authored
Merge pull request #21 from ermos/readme-add-installation-part
feat: add installation instruction in readme
2 parents 4795bae + d0233c0 commit 58bc866

2 files changed

Lines changed: 47 additions & 6 deletions

File tree

.goreleaser.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ builds:
1111
- CGO_ENABLED=0
1212

1313
archives:
14-
- # Replacements for GOOS and GOARCH in the archive name.
14+
- # Archive name template.
15+
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
16+
17+
# Replacements for GOOS and GOARCH in the archive name.
1518
replacements:
1619
darwin: macOS
1720
linux: Linux

README.md

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,50 @@ range of validation rules, from simple data type checks
99
to complex business logic rules, in a single place !
1010

1111
[![Go Reference](https://pkg.go.dev/badge/github.com/ermos/polyrule.svg)](https://pkg.go.dev/github.com/ermos/polyrule)
12-
[![Go Version](https://img.shields.io/github/go-mod/go-version/ermos/polyrule?label=version)](https://github.com/ermos/polyrule/blob/main/go.mod)
13-
[![Latest tag](https://img.shields.io/github/v/tag/ermos/polyrule)](https://github.com/ermos/polyrule/tags)
12+
[![Latest tag](https://img.shields.io/github/v/tag/ermos/polyrule?label=latest)](https://github.com/ermos/polyrule/tags)
1413
[![Go Report Card](https://goreportcard.com/badge/github.com/ermos/polyrule)](https://goreportcard.com/report/github.com/ermos/polyrule)
1514
[![Maintainability](https://api.codeclimate.com/v1/badges/c39c1d80ace4bb344393/maintainability)](https://codeclimate.com/github/ermos/polyrule/maintainability)
1615

17-
# Getting Started
16+
## 📦 Installation
1817

19-
You can find installations instruction
20-
in [the documentation](https://polyrule.smiti.fr/).
18+
### Linux
19+
20+
```bash
21+
curl -sL https://github.com/ermos/polyrule/releases/latest/download/polyrule_Linux_$(uname -m).tar.gz | tar -xvz --wildcards 'polyrule' \
22+
&& sudo mv polyrule /bin/
23+
```
24+
25+
### Mac
26+
27+
```bash
28+
curl -sL https://github.com/ermos/polyrule/releases/latest/download/polyrule_macOS_all.tar.gz | tar -xvz --wildcards 'polyrule' \
29+
&& sudo mv polyrule /bin/
30+
```
31+
32+
### Windows
33+
34+
Download the right archive from [the latest release page](https://github.com/ermos/polyrule/releases/latest).
35+
36+
### Alternative
37+
38+
From `go install` :
39+
```bash
40+
go install github.com/ermos/polyrule@latest
41+
```
42+
43+
From `source` :
44+
```bash
45+
git clone git@github.com:ermos/polyrule.git
46+
make build/bin
47+
```
48+
49+
## 📚 Documentation
50+
51+
You can find the documentation
52+
[here](https://polyrule.smiti.fr/).
53+
54+
## 🤝 Contributing
55+
56+
Contributions to `polyrule` are always welcome!
57+
If you find a bug or have a feature request, please open an issue on GitHub.
58+
If you want to contribute code, please fork the repository and submit a pull request.

0 commit comments

Comments
 (0)