Skip to content

Commit

Permalink
Prepare for 0.10.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
outdead committed Mar 9, 2022
1 parent 64bcfa0 commit 34b98a9
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ All notable changes to this project will be documented in this file.
**ATTN**: This project uses [semantic versioning](http://semver.org/).

## [Unreleased]

## [v0.10.2] - 2022-03-09
### Added
- Added `--timeout, -T` flag, allowed to set dial and execute timeout.
- Added Makefile.

## [v0.10.1] - 2021-11-13
### Fixed
Expand Down Expand Up @@ -106,7 +109,8 @@ than entry in configuration file.
### Added
- Initial implementation.

[Unreleased]: https://github.com/gorcon/rcon-cli/compare/v0.10.1...HEAD
[Unreleased]: https://github.com/gorcon/rcon-cli/compare/v0.10.2...HEAD
[v0.10.2]: https://github.com/gorcon/rcon-cli/compare/v0.10.1...v0.10.2
[v0.10.1]: https://github.com/gorcon/rcon-cli/compare/v0.10.0...v0.10.1
[v0.10.0]: https://github.com/gorcon/rcon-cli/compare/v0.9.1...v0.10.0
[v0.9.1]: https://github.com/gorcon/rcon-cli/compare/v0.9.0...v0.9.1
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ Use `^C` to terminate or type command `:q` to exit.
docker run -it --rm outdead/rcon ./rcon [options] [commands...]
```

You can add your config file as volume:
```bash
docker run -it --rm \
-v /path/to/rcon-local.yaml:/rcon.yaml \
outdead/rcon ./rcon -c rcon.yaml -e default players
```

## Configuration file
For more convenient use, the ability to create the `rcon.yaml` configuration file provided. You can save the host and port of the remote server and its password. If the configuration file exists, and the default block filled in it, then at startup the `-a` and `-p` flags can be omitted. Examples:
```bash
Expand Down
8 changes: 0 additions & 8 deletions scripts/docker/docker.mk
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
include build/docker/.env
export

## If the first argument is "docker-deploy"...
#ifeq (docker-run, $(firstword $(MAKECMDGOALS)))
# # use the rest as arguments for "run"
# RUN_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
# # ...and turn them into do-nothing targets
# $(eval $(RUN_ARGS):;@:)
#endif

IMAGES := `docker images --filter "dangling=true" -q --no-trunc`

docker-clean:
Expand Down
2 changes: 1 addition & 1 deletion scripts/local/build.sh → scripts/local/compile.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

VERSION="$1"
if [ -z "${VERSION}" ]; then echo "VERSION is not set. Use ./build.sh 0.0.0" >&2; exit 1; fi
if [ -z "${VERSION}" ]; then echo "VERSION is not set. Use ./compile.sh 0.0.0" >&2; exit 1; fi

RELEASE_DIR=".tmp/release"

Expand Down
6 changes: 3 additions & 3 deletions scripts/local/local.mk
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# If the first argument is "docker-deploy"...
ifeq (build, $(firstword $(MAKECMDGOALS)))
ifeq (compile, $(firstword $(MAKECMDGOALS)))
# use the rest as arguments for "run"
RUN_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
# ...and turn them into do-nothing targets
$(eval $(RUN_ARGS):;@:)
endif

build:
sh scripts/local/build.sh $(RUN_ARGS)
compile:
sh scripts/local/compile.sh $(RUN_ARGS)

run:
sh scripts/local/run.sh
Expand Down

0 comments on commit 34b98a9

Please sign in to comment.