Skip to content

Commit

Permalink
docs: prepare 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
WoozyMasta committed Jan 14, 2025
1 parent 66e31a6 commit 16cdca9
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 23 deletions.
27 changes: 24 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,27 @@ and this project adheres to [Semantic Versioning][].
### Removed
-->

## [0.3.0][] - 2025-01-14

Refactoring and Simplification

### Added

* new `Messages` channel in `Connection` for receiving server messages
(authorization status, server notifications) sent by the server not
in response to direct commands
* 32x32 and 64x64 winres icons for cli
* `.golangci.yml` config and fix linting issues
* more detailed comments in accordance with godoc

### Changed

* cli args parse now with `jessevdk/go-flags`
* removed logging from `bercon` and `bercon-cli`
* dependencies related to cli have been moved to internal packages

[0.3.0]: https://github.com/WoozyMasta/bercon-cli/compare/v0.2.0...v0.3.0

## [0.2.0][] - 2024-12-11

### Added
Expand All @@ -31,7 +52,7 @@ and this project adheres to [Semantic Versioning][].
* Aligned fields for all go structures
* Update dependencies

[0.2.0]: https://github.com/WoozyMasta/bercon-go/releases/tag/v0.2.0
[0.2.0]: https://github.com/WoozyMasta/bercon-cli/compare/v0.1.1...v0.2.0

## [0.1.1][] - 2024-12-08

Expand All @@ -45,15 +66,15 @@ and this project adheres to [Semantic Versioning][].
* Disabled UPX packer for Windows binaries to prevent false
positives from some antivirus

[0.1.1]: https://github.com/WoozyMasta/bercon-go/releases/tag/v0.1.1
[0.1.1]: https://github.com/WoozyMasta/bercon-cli/compare/v0.1.0...v0.1.1

## [0.1.0][] - 2024-11-28

### Added

* First public release

[0.1.0]: https://github.com/WoozyMasta/bercon-go/releases/tag/v0.1.0
[0.1.0]: https://github.com/WoozyMasta/bercon-cli/tree/v0.1.0

<!--links-->
[Keep a Changelog]: https://keepachangelog.com/en/1.1.0/
Expand Down
32 changes: 15 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,21 @@ bercon-cli --help
```

```txt
NAME:
bercon-cli - BattlEye RCon CLI
USAGE:
bercon-cli [options] command [command, command, ...]
OPTIONS:
--ip value, -i value server IPv4 address (default: "127.0.0.1") [$BERCON_ADDRESS]
--port value, -p value server RCON port (default: 2305) [$BERCON_PORT]
--password value, -P value server RCON password [$BERCON_PASSWORD]
--json, -j print result in JSON format (default: false) [$BERCON_JSON_OUTPUT]
--geo-db value, -g value path to Country GeoDB mmdb file [$BERCON_GEO_DB]
--timeout value, -t value deadline and timeout in seconds (default: 5) [$BERCON_TIMEOUT]
--buffer-size value, -b value buffer size for RCON connection (default: 1024) [$BERCON_BUFFER_SIZE]
--log-level value, -l value log level (default: "error") [$BERCON_LOG_LEVEL]
--version, -v print version
--help, -h show help
Usage:
bercon-cli [OPTIONS] command [command, command, ...]
BattlEye RCon CLI.
Application Options:
-i, --ip= Server IPv4 address (default: 127.0.0.1) [$BERCON_ADDRESS]
-P, --password= Server RCON password [$BERCON_PASSWORD]
-g, --geo-db= Path to Country GeoDB mmdb file [$BERCON_GEO_DB]
-p, --port= Server RCON port (default: 2305) [$BERCON_PORT]
-t, --timeout= Deadline and timeout in seconds (default: 3) [$BERCON_TIMEOUT]
-b, --buffer-size= Buffer size for RCON connection (default: 1024) [$BERCON_BUFFER_SIZE]
-j, --json Print result in JSON format [$BERCON_JSON_OUTPUT]
-h, --help Show version, commit, and build time
-v, --version Prints this help message
```

You can also use environment variables, they are specified in the help in
Expand Down
5 changes: 2 additions & 3 deletions cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ type Options struct {
// print result in JSON format
JSON bool `short:"j" long:"json" description:"Print result in JSON format" env:"BERCON_JSON_OUTPUT"`
// server IPv4 address
Help bool `short:"h" long:"help" description:"Show version, commit, and build time;"`
Help bool `short:"h" long:"help" description:"Show version, commit, and build time"`
// server IPv4 address
Version bool `short:"v" long:"version" description:"Prints this help message."`
Version bool `short:"v" long:"version" description:"Prints this help message"`
}

func main() {
Expand All @@ -51,7 +51,6 @@ func main() {

args, err := p.Parse()
if err != nil {
// fatal(err)
os.Exit(0)
}

Expand Down

0 comments on commit 16cdca9

Please sign in to comment.