chore: add some help from so for Sequoia command
This commit is contained in:
4
installer/Cargo.lock
generated
4
installer/Cargo.lock
generated
@@ -176,6 +176,7 @@ dependencies = [
|
||||
"crossterm_winapi",
|
||||
"derive_more",
|
||||
"document-features",
|
||||
"filedescriptor",
|
||||
"mio",
|
||||
"parking_lot",
|
||||
"rustix",
|
||||
@@ -1408,10 +1409,11 @@ checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
|
||||
|
||||
[[package]]
|
||||
name = "typoena-installer"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"base64",
|
||||
"crossterm",
|
||||
"ratatui",
|
||||
]
|
||||
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
[package]
|
||||
name = "typoena-installer"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0.103"
|
||||
base64 = "0.22.1"
|
||||
ratatui = "0.30.2"
|
||||
# Force crossterm's poll(2)-based event reader. The default `mio` backend uses
|
||||
# kqueue on macOS, which cannot register `/dev/tty` (the controlling-terminal
|
||||
# device) — so a `curl … | sh` launch, where fd0 is /dev/tty rather than a pty
|
||||
# slave, fails with "Failed to initialize input reader". `use-dev-tty` polls.
|
||||
crossterm = { version = "0.29", features = ["use-dev-tty"] }
|
||||
|
||||
@@ -152,6 +152,8 @@ fn gh_login() -> Option<String> {
|
||||
|
||||
fn active_wifi_ssid() -> Option<String> {
|
||||
// The Wi-Fi device on a Mac is usually en0; ask networksetup for its SSID.
|
||||
// Didn't work, but this command did for me:
|
||||
// networksetup -listpreferredwirelessnetworks en0 | grep -v '^Preferred networks on' | head -1 | xargs
|
||||
let out = Command::new("networksetup")
|
||||
.args(["-getairportnetwork", "en0"])
|
||||
.output()
|
||||
|
||||
Reference in New Issue
Block a user