Commit Graph

16 Commits

Author SHA1 Message Date
Christoph Heiss
a51f65e731 tui, common: move network option tests to correct crate
The `NetworkOptions` struct was moved here in

  5362c05cd ("common: copy common code from tui-installer")

and

  86c48f76f ("tui: switch to common crate")

but the tests were forgotten at the original place.

No functional changes.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2025-04-04 17:17:35 +02:00
Christoph Heiss
c305be5e91 tree-wide: rust: update to 2024 edition
Updates (and unifies) the edition across the workspace to 2024.

No functional changes.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2025-02-28 16:04:40 +01:00
Christoph Heiss
97c12b5493 tree-wide: add workspace-level cargo package version
Means that all CLIs will now have the correct version compiled-in.

This is at least very much relevant for
`proxmox-auto-install-assistant`, which we distribute separately as a
normal binary/package.

Currently, `proxmox-auto-install-assistant --version` always reports
'0.1.0', thus users have to effectively fall back to their system
package manager (if installed via such) to identify the correct version.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2025-01-28 15:31:00 +01:00
Christoph Heiss
681aaefab7 tui: use pretty_assertions for object equal asserts
Using the previously introduced `pretty_assertions` crates for object
comparisons improves developer UX quite a bit, making failures easier to
observe and quickly reason about.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2024-12-03 18:17:46 +01:00
Christoph Heiss
e3ecca02d9 tree-wide: add serde derive where actually needed
Fixes building each crate on their own.

In a full build (e.g. `make deb`), everything pulls in serde with the
`derive` feature anyway and thus does not exihibit any build failures.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2024-11-12 14:51:11 +01:00
Christoph Heiss
7a8d69c1e5 tree-wide: convert some more crates to use workspace dependencies
No functional changes.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2024-11-11 18:20:19 +01:00
Christoph Heiss
6d9929b532 tui: use email regex from HTML specification for validation
That regex should be a lot more accurate in what it allows - if it's
good enough for the HTML spec, it should be for us too.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2024-11-10 19:17:07 +01:00
Christoph Heiss
596595d3d6 debian: bump cursive to 0.21
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2024-08-13 13:07:44 +02:00
Christoph Heiss
80f3e87c48 tui: switch cursive to crossterm backend
Development of crossterm seems to be more active, has more frequent
releases and is also the default backend for cursive - so overall also
probably better supported/tested.

Additionally, it feels a bit more snappier/less flickery, probably due
to buffering writes to the TTY layer unlike termion.

As this effects only the way cursive talks to the TTY, this has no
visible change on the TUI itself.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2024-08-13 13:07:44 +02:00
Aaron Lauterer
41f2a23371 tui-installer: add dependency for new common crate
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Reviewed-by: Christoph Heiss <c.heiss@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-02 20:04:24 +01:00
Christoph Heiss
636da45e9d tui: check hvm support through runtime env info instead of open-coding
As the runtime environment now exports that info, use it. In turn, this
allows us to drop the dependency on `proxmox-sys`, as that check was its
only user.

The dependency graph drops from 107 to 88 crates from this, which
definitively is a nice change.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-07-13 15:48:02 +02:00
Dominik Csapak
298a4de044 tui: verify email with basic regex
regex copied from perl gui installer

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
 [T: add missing librust-regex-1+default-dev B-D ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-21 15:14:15 +02:00
Wolfgang Bumiller
52f80858e6 tui: dependencies: group our own crates separately
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-06-16 13:32:54 +02:00
Christoph Heiss
4296d2004c tui: implement initial parsing for setup & locale info
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-14 12:53:58 +02:00
Christoph Heiss
130fb96a09 tui: add simple system cpu/memory check, similar to gui installer
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-14 10:39:56 +02:00
Christoph Heiss
183e2a7641 tui: add initial proof-of-concept
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-14 10:39:56 +02:00