Skip to content

Commit

Permalink
Merge pull request #3 from Smajlll/server_list
Browse files Browse the repository at this point in the history
Server list function now works! Build instructions.
  • Loading branch information
Smajlll committed Jan 22, 2024
2 parents f87606d + 94109ed commit caded2d
Show file tree
Hide file tree
Showing 10 changed files with 24,874 additions and 10 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ add_executable(pufferstarter_cli src/main.cpp
src/http_request.h
src/get_server_info.h
src/print_server_info.h
src/change_status.h)
src/change_status.h
src/list_servers.h)
7 changes: 7 additions & 0 deletions LICENSES
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
PufferStarter uses these opensource projects at its base:

- Json for Modern C++ @ https://github.com/nlohmann/json
Under its MIT Licence found here: https://github.com/nlohmann/json/blob/develop/LICENSE.MIT

- PufferPanel and its API @ https://github.com/pufferpanel/pufferpanel
Under its Apache License 2.0 found here: https://github.com/pufferpanel/pufferpanel/blob/v3/LICENSE
18 changes: 14 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,37 @@ An application written in C++, that will help you control your PufferPanel serve
### Building instructions
Right now, I don't have any scripts for building, but, you can build PufferStarter by running these commands:

Linux & other UNIX systems:
``` bash
git clone https://github.com/Smajlll/pufferstarter-cli.git
cd pufferstarter-cli
mkdir build
cd build
cmake ..
cmake build
cmake --build .
chmod +x ./pufferstarter-cli
./pufferstarter-cli
```

Windows:
``` bash
git clone https://github.com/Smajlll/pufferstarter-cli.git
cd pufferstarter-cli
mkdir build
cd build
cmake ..
cmake --build .
```
The .exe will be in the newly created Debug folder.

### What works? And what doesn't?
Right now, this works:
- Basic auth
- The app will get, and send the request to the server, it parses it, and stores the raw ID in a variable
- Listing the server information (id, name, port, status)
- Changing the status of the server
- Listing all the servers

What will work?:
- The program will parse the JSON to get the raw token and use it in its requests
- With that, changing the status (shutting down, killing, starting) of the servers, and getting the information about them will also be implemented.

What I hope to implement in the future?:
- List all the server available to you, as well as its id.
Expand Down
Loading

0 comments on commit caded2d

Please sign in to comment.