mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-19 19:17:01 -07:00
Removed max_results from config (in rest_api)
This commit is contained in:
parent
460e2054c2
commit
3d9f1dbeba
2 changed files with 5 additions and 10 deletions
|
|
@ -98,10 +98,10 @@ namespace gdpm::package_manager{
|
|||
auto configOpt = option("--config-path").set(config.path) % "set config path";
|
||||
auto pathOpt = option("--path").set(params.paths) % "specify a path to use with command";
|
||||
auto typeOpt = option("--type").set(config.info.type) % "set package type (any|addon|project)";
|
||||
auto sortOpt = option("--sort").set(config.api_params.sort) % "sort packages in order (rating|cost|name|updated)";
|
||||
auto supportOpt = option("--support").set(config.api_params.support) % "set the support level for API (all|official|community|testing)";
|
||||
auto maxResultsOpt = option("--max-results").set(config.api_params.max_results) % "set the request max results";
|
||||
auto godotVersionOpt = option("--godot-version").set(config.api_params.godot_version) % "set the request Godot version";
|
||||
auto sortOpt = option("--sort").set(config.rest_api_params.sort) % "sort packages in order (rating|cost|name|updated)";
|
||||
auto supportOpt = option("--support").set(config.rest_api_params.support) % "set the support level for API (all|official|community|testing)";
|
||||
auto maxResultsOpt = option("--max-results").set(config.rest_api_params.max_results) % "set the request max results";
|
||||
auto godotVersionOpt = option("--godot-version").set(config.rest_api_params.godot_version) % "set the request Godot version";
|
||||
auto packageDirOpt = option("--package-dir").set(config.packages_dir) % "set the global package location";
|
||||
auto tmpDirOpt = option("--tmp-dir").set(config.tmp_dir) % "set the temporary download location";
|
||||
auto timeoutOpt = option("--timeout").set(config.timeout) % "set the request timeout";
|
||||
|
|
|
|||
|
|
@ -17,12 +17,7 @@
|
|||
namespace gdpm::rest_api{
|
||||
|
||||
request_params make_from_config(const config::context& config){
|
||||
bool is_latest = (config.info.godot_version.empty() || config.info.godot_version == "latest");
|
||||
request_params params = make_request_params();
|
||||
params.godot_version = (is_latest) ? "" : config.info.godot_version;
|
||||
params.verbose = config.verbose;
|
||||
params.max_results = config.max_results;
|
||||
return params;
|
||||
return config.api_params;
|
||||
}
|
||||
|
||||
request_params make_request_params(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue