13 Commits

Author SHA1 Message Date
Philip Mueller
fb3808335e [code] try to make clippy happy 2023-06-22 22:59:04 +02:00
EdJoPaTo
dc127ed87a Fix Clippy lints & GitHub Action improvements (#74)
* ci: improve

- run on all branches to test things
- no cargo color, it destroys actions-rs/cargo features
- update versions

* refactor(lint): fix clippy issues

* refactor(lint): fix more clippy issues
2023-06-22 22:35:17 +02:00
James McMurray
7152901820
Migrate ALMA to anyhow (#54) 2020-05-31 08:38:20 +03:00
James McMurray
bc9969a0db
Add shared_directories preset parameter (#35) 2020-03-26 20:57:46 +02:00
James McMurray
490ab30f4c Refactor main.rs and fix clippy lints
Status: WIP

Completed:
* Fixed flagged clippy lints
* Moved qemu(), main.rs::mount() and chroot() to the tools module.
* Moved constants in main.rs to constants.rs (including base packages
  array)
* Renamed Presets struct to PresetsCollection to avoid confusion with
  Preset struct
* Moved main() to the top of main.rs to highlight general logic path
* Added comments and docstrings to some functions
* Removed some uses of `use foo::*` to make the source of imported functions
  and structs clearer

TODO:
* Move remaining code in main.rs to modules (except main())
* Break up create() function in to separate steps
* Log every command run (with arguments) to debug! when verbose flag is used
* Add docstrings for remaining functions and document constants (e.g.
  why noatime is used)
* Remove remaining uses of `use foo::*`
* Consider renaming/moving tools module to address tool:: vs. Tool::
  confusion
2020-03-06 23:11:56 +01:00
Roey Darwish Dror
7c88f4527d Dependencies bump and compilation fixes 2020-03-01 21:25:26 +02:00
Roey Darwish Dror
750653c222 Add a flag for non-removable devices (fix #24) 2019-08-13 21:43:55 +03:00
Roey Darwish Dror
4ea5807a5a Make Clippy happy 2019-08-01 11:03:54 +03:00
Roey Darwish Dror
4b7547a57e Interactive device selection 2019-06-20 20:51:08 +03:00
Roey Darwish Dror
4f7b834ce3 Implement auto detection of encrypted root devices (fix #21) 2019-06-18 22:53:57 +03:00
Roey Darwish Dror
92f5bdfeab Support chroot images 2019-06-17 20:56:26 +03:00
Roey Darwish Dror
d4cdd187a0 Loop device support 2019-06-17 20:34:34 +03:00
Roey Darwish Dror
bb7567e72b Uber refactoring 2019-05-29 13:59:49 +03:00