-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from webhippie/fix-api-endpoint
feat: use viper and cobra, switch to new api endpoint
- Loading branch information
Showing
22 changed files
with
872 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,8 @@ branches: | |
restrictions: | ||
apps: | ||
- renovate | ||
users: [] | ||
users: | ||
- bothippie | ||
teams: [] | ||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Bugfix: Switch API as it is secured now | ||
|
||
We switched to the official Curseforge API as the previously used API is not | ||
usable anymore. Part of that is also introducing a flag for the API key as we | ||
don't have any anonymous API available anymore. | ||
|
||
https://github.com/webhippie/cursecli/issues/6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"log": { | ||
"level": "info", | ||
"pretty": true, | ||
"color": true | ||
}, | ||
"api": { | ||
"key": "" | ||
}, | ||
"manifest": { | ||
"path": "manifest.json" | ||
}, | ||
"mods": { | ||
"path": "mods/" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
log: | ||
level: info | ||
pretty: true | ||
color: true | ||
|
||
api: | ||
key: | ||
|
||
manifest: | ||
path: manifest.json | ||
|
||
mods: | ||
path: mods/ | ||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: "About" | ||
date: 2022-05-04T00:00:00+00:00 | ||
anchor: "about" | ||
weight: 10 | ||
--- | ||
|
||
This command-line tool provides commands to interact with the Curseforge API. At | ||
the time of writing this you are able to download all mods part of a manifest | ||
which have been defined within the Curseforge client, focused on Minecraft. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,99 @@ | ||
--- | ||
title: "Getting Started" | ||
date: 2022-05-03T00:00:00+00:00 | ||
date: 2022-05-20T00:00:00+00:00 | ||
anchor: "getting-started" | ||
weight: 10 | ||
weight: 20 | ||
--- | ||
|
||
## Installation | ||
|
||
TBD | ||
So far we are offering only a few different variants for the installation. You | ||
can choose between [Docker][docker] or pre-built binaries which are stored on | ||
our download mirror and GitHub releases. Maybe we will also provide system | ||
packages for the major distributions later if we see the need for it. | ||
|
||
### Docker | ||
|
||
Generally we are offering the images through | ||
[quay.io/webhippie/cursecli][quay] and [webhippie/cursecli][dockerhub], so | ||
feel free to choose one of the providers. Maybe we will come up with Kustomize | ||
manifests or some Helm chart. | ||
|
||
### Binaries | ||
|
||
Simply download a binary matching your operating system and your architecture | ||
from our [downloads][downloads] or the GitHub releases and place it within your | ||
path like `/usr/local/bin` if you are using macOS or Linux. | ||
|
||
## Configuration | ||
|
||
TBD | ||
We provide overall three different variants of configuration. The variant based | ||
on environment variables and commandline flags are split up into global values | ||
and command-specific values. | ||
|
||
### Envrionment variables | ||
|
||
If you prefer to configure the service with environment variables you can see | ||
the available variables below. | ||
|
||
#### Global | ||
|
||
CURSECLI_CONFIG_FILE | ||
: Path to optional config file | ||
|
||
CURSECLI_LOG_LEVEL | ||
: Set logging level, defaults to `info` | ||
|
||
CURSECLI_LOG_COLOR | ||
: Enable colored logging, defaults to `true` | ||
|
||
CURSECLI_LOG_PRETTY | ||
: Enable pretty logging, defaults to `true` | ||
|
||
CURSECLI_API_KEY | ||
: API key to access Curseforge | ||
|
||
### Commandline flags | ||
|
||
If you prefer to configure the service with commandline flags you can see the | ||
available variables below. | ||
|
||
#### Global | ||
|
||
--config-file | ||
: Path to optional config file | ||
|
||
--log-level | ||
: Set logging level, defaults to `info` | ||
|
||
--log-color | ||
: Enable colored logging, defaults to `true` | ||
|
||
--log-pretty | ||
: Enable pretty logging, defaults to `true` | ||
|
||
--api-key | ||
: API key to access Curseforge | ||
|
||
### Configuration file | ||
|
||
So far we support multiple file formats like `json` or `yaml`, if you want to | ||
get a full example configuration just take a look at [our repository][repo], | ||
there you can always see the latest configuration format. These example configs | ||
include all available options and the default values. The configuration file | ||
will be automatically loaded if it's placed at | ||
`/etc/cursecli/config.yml`, `${HOME}/.cursecli/config.yml` or | ||
`$(pwd)/cursecli/config.yml`. | ||
|
||
## Usage | ||
|
||
The program provides a few sub-commands on execution. The available config | ||
methods have already been mentioned above. Generally you can always see a | ||
formated help output if you execute the binary similar to something like | ||
`cursecli --help`. | ||
|
||
[docker]: https://www.docker.com/ | ||
[quay]: https://quay.io/repository/webhippie/cursecli | ||
[dockerhub]: https://hub.docker.com/r/webhippie/cursecli | ||
[downloads]: https://dl.webhippie.de/#cursecli/ | ||
[repo]: https://github.com/webhippie/cursecli/tree/master/config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.