Commit graph

10 commits

Author SHA1 Message Date
Augusto Dwenger J. 8f3304b56f Fix prompt indicator 2023-07-28 19:10:04 +02:00
Augusto Dwenger J. f515849caa Remove color chars on windows
We only support Unix like systems for colors and windows gets the color
information removed to reduce the output clutter.
2023-07-28 18:20:11 +02:00
Augusto Dwenger J. 54b2977dc5 Add craftbukkit color support
Except on Windows.

Taken from b39477abe1
2023-07-28 14:30:17 +02:00
Augusto Dwenger J. a532d2ef99 Acknowledge return values from printing functions
Most of the time we don't care about the return values of a print
function, but we should at leased visualize that there is a return
value that we don't care about or want to ignore with a "_".
2023-07-28 13:51:56 +02:00
Augusto Dwenger J. 9db0f9f923
Refactor cmd execution function chain to be more readable
The execution was originaly build to be used as a lib, but this is no
longer the case and so I removed all the `io.Writer` and `io.Reader`
interactions. The app reads now from Stdin and writes to Stdout as it
did before.
It also redoes the error handling so that all errors that are not
treated are being handled in the `main` function.
2022-02-03 00:27:16 +01:00
Augusto Dwenger J. df5d02cbe4
Extract shared cmd execution into own function 2022-02-02 23:20:08 +01:00
Augusto Dwenger J. 6ee166e754
Move cli/entry.go into main.go
This is to remove the directory that is used in cobra setups.
While we could kept the file inside the root directory but it only
contains two small functions that can be moved into the `main.go` file.
2022-02-02 22:44:49 +01:00
Augusto Dwenger J. aed30e4a74 Remove cobra as cli flag manager
This reduces the package size by ca. 50%. One draw back of this
change is that there is no longer support for the `config.yml` file.
There is also a change inside the env vars naming: The variables have to
start with `RCON_CLI`.
2021-03-08 16:39:07 +01:00
Augusto Dwenger J. fd3c96e6b7 Remove license/copyright holder headers 2021-03-07 23:54:25 +01:00
Geoff Bourne 3a873489ed Initial commit 2017-04-05 15:12:15 -05:00