build(deps): update rust crate os_info to 3.7.0 (#5057)

* build(deps): update rust crate os_info to 3.7.0

* add new os symbols

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
David Knaack 2023-04-10 13:07:30 +02:00 committed by GitHub
parent 07d9bb1691
commit b475b5809f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 24 additions and 4 deletions

View File

@ -1121,10 +1121,12 @@
"format": "[$symbol]($style)",
"style": "bold white",
"symbols": {
"Alpaquita": "🔔 ",
"Alpine": "🏔️ ",
"Amazon": "🙂 ",
"Android": "🤖 ",
"Arch": "🎗️ ",
"Artix": "🎗️ ",
"CentOS": "💠 ",
"Debian": "🌀 ",
"DragonFly": "🐉 ",
@ -1137,6 +1139,7 @@
"HardenedBSD": "🛡️ ",
"Illumos": "🐦 ",
"Linux": "🐧 ",
"Mabox": "📦 ",
"Macos": "🍎 ",
"Manjaro": "🥭 ",
"Mariner": "🌊 ",
@ -4377,10 +4380,12 @@
},
"symbols": {
"default": {
"Alpaquita": "🔔 ",
"Alpine": "🏔️ ",
"Amazon": "🙂 ",
"Android": "🤖 ",
"Arch": "🎗️ ",
"Artix": "🎗️ ",
"CentOS": "💠 ",
"Debian": "🌀 ",
"DragonFly": "🐉 ",
@ -4393,6 +4398,7 @@
"HardenedBSD": "🛡️ ",
"Illumos": "🐦 ",
"Linux": "🐧 ",
"Mabox": "📦 ",
"Macos": "🍎 ",
"Manjaro": "🥭 ",
"Mariner": "🌊 ",

4
Cargo.lock generated
View File

@ -2012,9 +2012,9 @@ dependencies = [
[[package]]
name = "os_info"
version = "3.6.0"
version = "3.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c424bc68d15e0778838ac013b5b3449544d8133633d8016319e7e05a820b8c0"
checksum = "006e42d5b888366f1880eda20371fedde764ed2213dc8496f49622fa0c99cd5e"
dependencies = [
"log",
"serde",

View File

@ -60,7 +60,7 @@ nu-ansi-term = "0.47.0"
once_cell = "1.17.1"
open = "4.0.1"
# update os module config and tests when upgrading os_info
os_info = "3.6.0"
os_info = "3.7.0"
path-slash = "0.2.1"
pest = "2.5.7"
pest_derive = "2.5.7"

View File

@ -74,10 +74,12 @@ symbol = " "
symbol = " "
[os.symbols]
Alpaquita = " "
Alpine = " "
Amazon = " "
Android = " "
Arch = " "
Artix = " "
CentOS = " "
Debian = " "
DragonFly = " "
@ -90,6 +92,7 @@ Gentoo = " "
HardenedBSD = "ﲊ "
Illumos = " "
Linux = " "
Mabox = " "
Macos = " "
Manjaro = " "
Mariner = " "

View File

@ -119,10 +119,12 @@ symbol = "ml "
symbol = "opa "
[os.symbols]
Alpaquita = "alq "
Alpine = "alp "
Amazon = "amz "
Android = "andr "
Arch = "rch "
Artix = "atx "
CentOS = "cent "
Debian = "deb "
DragonFly = "dfbsd "
@ -135,6 +137,7 @@ Gentoo = "gent "
HardenedBSD = "hbsd "
Illumos = "lum "
Linux = "lnx "
Mabox = "mbox "
Macos = "mac "
Manjaro = "mjo "
Mariner = "mrn "

View File

@ -3004,10 +3004,12 @@ If you would like an operating system to be added, feel free to open a [feature
```toml
# This is the default symbols table.
[os.symbols]
Alpaquita = "🔔 "
Alpine = "🏔️ "
Amazon = "🙂 "
Android = "🤖 "
Arch = "🎗️ "
Artix = "🎗️ "
CentOS = "💠 "
Debian = "🌀 "
DragonFly = "🐉 "
@ -3020,6 +3022,7 @@ Gentoo = "🗜️ "
HardenedBSD = "🛡️ "
Illumos = "🐦 "
Linux = "🐧 "
Mabox = "📦 "
Macos = "🍎 "
Manjaro = "🥭 "
Mariner = "🌊 "

View File

@ -28,10 +28,12 @@ impl<'a> Default for OSConfig<'a> {
format: "[$symbol]($style)",
style: "bold white",
symbols: indexmap! {
Type::Alpaquita => "🔔 ",
Type::Alpine => "🏔️ ",
Type::Amazon => "🙂 ",
Type::Android => "🤖 ",
Type::Arch => "🎗️ ",
Type::Artix => "🎗️ ",
Type::CentOS => "💠 ",
Type::Debian => "🌀 ",
Type::DragonFly => "🐉 ",
@ -44,6 +46,7 @@ impl<'a> Default for OSConfig<'a> {
Type::HardenedBSD => "🛡️ ",
Type::Illumos => "🐦 ",
Type::Linux => "🐧 ",
Type::Mabox => "📦 ",
Type::Macos => "🍎 ",
Type::Manjaro => "🥭 ",
Type::Mariner => "🌊 ",

View File

@ -331,10 +331,11 @@ mod tests {
// - dosc/.vuepress/public/presets/toml/nerd-font-symbols.toml
// - .github/config-schema.json
let _ = |t: Type| match t {
Type::Alpaquita => "🔔 ",
Type::Alpine => "🏔️ ",
Type::Amazon => "🙂 ",
Type::Android => "🤖 ",
Type::Arch => "🎗️ ",
Type::Arch | Type::Artix => "🎗️ ",
Type::CentOS => "💠 ",
Type::Debian => "🌀 ",
Type::DragonFly => "🐉 ",
@ -347,6 +348,7 @@ mod tests {
Type::HardenedBSD => "🛡️ ",
Type::Illumos => "🐦 ",
Type::Linux => "🐧 ",
Type::Mabox => "📦 ",
Type::Macos => "🍎 ",
Type::Manjaro => "🥭 ",
Type::Mariner => "🌊 ",