Skip to content

Commit

Permalink
refactor: restructure and add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tshaka Eric Lekholoane committed Jul 17, 2021
1 parent e0c25e0 commit 1e01080
Show file tree
Hide file tree
Showing 14 changed files with 570 additions and 320 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
bat
!bat/

# Binaries for programs and plugins
*.exe
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ There have also been some [problems setting the charging threshold inside of a v

## Installation

Precompiled binaries (Linux x86-64) are available from the [GitHub releases page](https://github.com/leveson/bat/releases), the latest of which can be downloaded from [here](https://github.com/leveson/bat/releases/download/0.6/bat).
Precompiled binaries (Linux x86-64) are available from the [GitHub releases page](https://github.com/leveson/bat/releases), the latest of which can be downloaded from [here](https://github.com/leveson/bat/releases/download/0.7/bat).

After downloading the binary, give it permission to execute on your system by running the following command. For example, assuming the binary is located in the user's Downloads folder:

Expand All @@ -52,7 +52,7 @@ $ chmod +x $HOME/Downloads/bat
Alternatively, the application can be build from source by running the following [Go](https://golang.org/) command.

```shell
$ go build bat.go
$ go build ./cmd/bat/
```

**Tip**: Place the resulting binary in a directory that is in the `$PATH` environment variable such as `/usr/local/bin/`. This will allow the user to execute the program from anywhere on their system.
Expand Down
318 changes: 0 additions & 318 deletions bat.go

This file was deleted.

Loading

0 comments on commit 1e01080

Please sign in to comment.