Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicconike committed Jul 8, 2024
1 parent f070705 commit a0e882b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,27 @@ This will check the specified file for the current Go version, compare it with t

1. Get version from a Dockerfile:
```sh
goautomate -file ./Dockerfile
goautomate -file Dockerfile
```
![Dockerfile Example](https://github.com/Nicconike/goautomate/blob/master/assets/dockerfile_example.png)

2. Get version from go.mod:
```sh
goautomate -file ./go.mod
goautomate -file go.mod
```
![Go Mod Example](https://github.com/Nicconike/goautomate/blob/master/assets/gomod_example.png)

3. Specify version directly:
```sh
goautomate -version 1.16.5
```
![Direct Example](https://github.com/Nicconike/goautomate/blob/master/assets/direct_example.png)

4. Download for a specific OS and architecture:
```sh
goautomate -file ./go.mod -os linux -arch arm64
goautomate -file version.json -os linux -arch arm64
```
![JSON Example with OS](https://github.com/Nicconike/goautomate/blob/master/assets/json_example_os_arch.png)

## Supported File Types

Expand All @@ -75,7 +79,7 @@ goautomate can extract Go versions from various file types, including:

The tool uses various patterns to detect Go versions, making it flexible for different project setups.

Missing any file types you expected to see? Let me know
Missing any file types you expected to see? Let me know through [discussions](https://github.com/Nicconike/goautomate/discussions).

## Contributing

Expand Down
Binary file added assets/direct_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dockerfile_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/gomod_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/json_example_os_arch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a0e882b

Please sign in to comment.