forked from jbsparrow/CyberDropDownloader
-
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.
docs: wiki and changelog updates for v6.4.0 release (jbsparrow#550)
* docs: update changelog * docs: update changelog * chore: bump version v6.4.0 * docs: fix `log_level` description * docs: add special types page * fix: summary index * docs: update changelog * docs: fix references * docs: fix typo
- Loading branch information
1 parent
f9a7533
commit a114d69
Showing
6 changed files
with
101 additions
and
14 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
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
63 changes: 63 additions & 0 deletions
63
docs/reference/configuration-options/special_setting_types.md
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,63 @@ | ||
--- | ||
description: Configuration settings with special behavior or details. | ||
icon: sparkles | ||
--- | ||
|
||
# Special Setting Types | ||
|
||
## `BoolFlag` | ||
|
||
A special kind of `bool`. Within a config file, it can have a `true` or `false` value. However, when used via CLI, the value is assumed from the flag name. The normal name is `true`, and prefixing the name with `--no` means `false`. | ||
|
||
### Examples: | ||
|
||
| Value you used | Value CDL interpreted | | ||
| -------------------- | --------------------- | | ||
| `--auto-dedupe` | auto-dedupe: `true` | | ||
| `--no-auto-dedupe` | auto-dedupe: `false` | | ||
|
||
## `ByteSize` | ||
|
||
A special kind of `int` that accepts suffixes like `GB`, `MiB` and `KB` | ||
|
||
In conformance with IEC 80000-13 Standard, `1KB` means `1000 bytes`, and `1KiB` means `1024 bytes`. In general, including a middle 'i' will cause the unit to be interpreted as a power of 2, rather than a power of 10. | ||
|
||
### Examples: | ||
|
||
| Value you used | Value CDL interpreted | | ||
| -------------- | --------------------- | | ||
| `1GB` | `1.000.000.000 bytes` | | ||
| `512` | `512 bytes` | | ||
| `1MiB` | `1.048.576 bytes` | | ||
|
||
{% hint style="info" %} | ||
`ByteSize` is also used for some settings to specify speed and it's interpreted as `<value> / second`. ex: `8MB` means `8MB/s` | ||
{% endhint %} | ||
|
||
|
||
## `AdditiveArgs` | ||
|
||
Special type for some settings that accept multiple values as input (`lists` or `sets`). When passing values as CLI arguments, if the first value is `+`, any value after it will be added to the values specified in the config file instead of overriding it. Similarly, if the first value is `-`, any value after it will be removed from the values specified in the config | ||
|
||
### Examples: | ||
|
||
If you have the following `skip_hosts` setting in you config file: | ||
|
||
```yaml | ||
skip_hosts: | ||
- drive.google.com | ||
- youtube.com | ||
- facebook.com | ||
``` | ||
You will get the following results: | ||
| Value you used | Value CDL interpreted | Details | | ||
| -------------- | --------------------- | ------- | | ||
| `--skip-host instagram.com` | `[instagram.com]` | config values were overridden by CLI values | | ||
| `--skip-host "+" instagram.com` | `[drive.google.com, youtube.com, facebook.com, instagram.com]` | config values and CLI values were merged | | ||
| `--skip-host "-" drive.google.com youtube.com` | `[facebook.com]` | CLI values were removed from the config values | | ||
|
||
{% hint style="info" %} | ||
Always use quotes for "+" and "-" to make sure your shell does not try to parse them as additional flags | ||
{% endhint %} |
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