Skip to content

Commit

Permalink
Merge pull request #1 from blastorg/update-readme-with-more-content
Browse files Browse the repository at this point in the history
update readme with gif and more samples
  • Loading branch information
gdgunnars authored Apr 30, 2024
2 parents 2a7b32a + 898c6de commit 4663acc
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/on-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ jobs:
if [ "${{ matrix.os }}" = "windows-latest" ]; then
mv "target/${{ matrix.target }}/release/$binary_name.exe" "$dirname"
else
ls -alh "target/${{ matrix.target }}/release/"
mv "target/${{ matrix.target }}/release/$binary_name" "$dirname"
mv "target/${{ matrix.target }}/release/$binary_name" "$dirname"
fi
if [ "${{ matrix.os }}" = "windows-latest" ]; then
Expand Down
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,57 @@

A simple CLI for valves RCON server management.

![rcon cli preview](./media/rcon-demo-min.gif?raw=true)

## Usage

```bash
rcon --help
```

example commands:

- `rcon server list` // list all servers
- `rcon server add` // add a new server
- `rcon -d action exec` // execute a command on the **Default server**
- `rcon action exec` // execute a command on a server _(selected from a list)_
- `rcon action shell` // open a recurring command executor
- `rcon shell-completion <Filename e.g. completion.sh>` // generate shell completion script (auto detects shell)

## Installation

### Using Binaries

Download the [latest release](https://github.com/blastorg/rcon-cli-rs/releases/latest) for your operating system and add them to your PATH.

#### CLI Autocomplete

You can generate shell completion scripts by running the following command:

```bash
rcon shell-completion <Filename e.g. completion.sh>
```

Installing it depends on your shell, for example, for bash:

```bash
source completion.sh
```

## Building from source

Make sure you've set up your rust environment by following the instructions [here](https://www.rust-lang.org/tools/install).

```bash
cargo build
```

or

```bash
cargo build --release
```

## Logging verbosity flag 🚩

- -q silences output
Expand Down
Binary file added media/rcon-demo-min.gif
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 4663acc

Please sign in to comment.