Skip to content

Commit 17629e0

Browse files
committed
share networks with qr codes
1 parent 269df44 commit 17629e0

File tree

16 files changed

+401
-26
lines changed

16 files changed

+401
-26
lines changed

Cargo.lock

Lines changed: 206 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ strum = { version = "0.27.2", features = ["derive"] }
3333
strum_macros = "0.27"
3434
libc = "0.2"
3535
hex = "0.4.3"
36+
tui-qrcode = "0.1.3"
37+
qrcode = "0.14.1"
3638

3739
[profile.release]
3840
strip = true

Release.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- Show all the configured networks
44
- Encode network names correctly
5+
- Share network with QR code
56

67
## 0.5.0 - 2025-11-21
78

src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ pub enum FocusedBlock {
2323
RequestKeyPasshphrase,
2424
RequestPassword,
2525
RequestUsernameAndPassword,
26+
ShareNetwork,
2627
}
2728

28-
#[derive(Debug)]
2929
pub struct App {
3030
pub running: bool,
3131
pub focused_block: FocusedBlock,

src/config.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ pub struct KnownNetwork {
9494
pub remove: char,
9595
pub toggle_autoconnect: char,
9696
pub show_all: char,
97+
pub share: char,
9798
}
9899

99100
impl Default for KnownNetwork {
@@ -102,6 +103,7 @@ impl Default for KnownNetwork {
102103
remove: 'd',
103104
toggle_autoconnect: 't',
104105
show_all: 'a',
106+
share: 'p',
105107
}
106108
}
107109
}

0 commit comments

Comments
 (0)