| 1 | //! Route-save decisions. |
| 2 | //! |
| 3 | //! A `/model` or `/provider` change is temporary by default. Nothing is |
| 4 | //! written until the user runs one of the explicit commands: `/fleet save` |
| 5 | //! updates the selected Fleet, `/fleet save-as` saves the route as a new |
| 6 | //! Fleet, and `/model save-default` remembers it as the startup default. No |
| 7 | //! key is intercepted, so a scripted or automated terminal is never |
| 8 | //! interrupted. |
| 9 | |
| 10 | /// The explicit persistence choice. |
| 11 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] |
| 12 | pub enum RouteSaveChoice { |
| 13 | /// Rewrite the selected Fleet's operator route to the session route |
| 14 | /// (`/fleet save`). |
| 15 | UpdateFleet, |
| 16 | /// Save the session route as a brand-new Fleet (user-global) and select it |
| 17 | /// (`/fleet save-as`). |
| 18 | SaveAsNewFleet, |
| 19 | /// Remember the session route as the startup default |
| 20 | /// (`/model save-default`). |
| 21 | SaveAsDefault, |
| 22 | } |
| 23 |