From f9495ca4a055f6815d943b8d37f778dca8d2eec2 Mon Sep 17 00:00:00 2001 From: "James C. McPherson" Date: Wed, 7 Jan 2026 17:09:59 +1000 Subject: [PATCH] issue-4 Add umount as an alias for unmount --- Cargo.lock | 2 +- Cargo.toml | 2 +- doc/beadm.8.scd | 2 ++ meson.build | 2 +- src/main.rs | 1 + 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d617d2d..710f799 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -259,7 +259,7 @@ dependencies = [ [[package]] name = "beadm" -version = "0.2.2-dev" +version = "0.2.3-dev" dependencies = [ "anyhow", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 8bb62e8..6e4f3e2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "beadm" -version = "0.2.2-dev" +version = "0.2.3-dev" edition = "2024" [dependencies] diff --git a/doc/beadm.8.scd b/doc/beadm.8.scd index 8661310..4492b10 100644 --- a/doc/beadm.8.scd +++ b/doc/beadm.8.scd @@ -16,6 +16,7 @@ beadm - Boot Environment Administration *beadm* *list* [*-adsH*] [*-k* _property_ | *-K* _property_] [_name_] ++ *beadm* *mount* [*-s* _mode_] _name_ [_mountpoint_] ++ *beadm* *unmount* [*-f*] _name_ ++ +*beadm* *nmount* [*-f*] _name_ ++ *beadm* *rename* _name_ _new-name_ ++ *beadm* *describe* { _name_ | _name@snapshot_ } _desc_ ++ *beadm* *rollback* _name_ _snapshot_ ++ @@ -142,6 +143,7 @@ same installation) on a single system. Mount as read/write (_rw_) or read-only (_ro_). Default is _rw_. *unmount* [*-f*] _name_ +*umount* [*-f*] _name_ (command alias) Unmount an inactive boot environment. diff --git a/meson.build b/meson.build index 5a02913..7b5e2f3 100644 --- a/meson.build +++ b/meson.build @@ -2,7 +2,7 @@ project('beadm', 'rust', - version : '0.2.2-dev', + version : '0.2.3-dev', meson_version : '>=0.60.0', default_options : ['warning_level=2']) diff --git a/src/main.rs b/src/main.rs index 0be8e45..3f860fd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -198,6 +198,7 @@ enum Commands { /// Unmount an inactive boot environment. /// /// Unmounting will not remove the mountpoint unless it is one we created. + #[command(visible_alias = "umount")] Unmount { /// The boot environment. ///