* Create `Sudo` type and `SudoKind` enum
* Fix build
* reformat
* Fix choco on windows
* Fix linux
* Fix linux more
* more fix stuff hehe hoho hahaha
* more fix stuff hehe hoho hahaha
Co-authored-by: Thomas Schönauer <37108907+DottoDev@users.noreply.github.com>
* Remove the `sys-info` crate
It offers much more features than we currently use.
Additionally, it was preventing me to cross-compile for NetBSD.
Since we were just using the `hostname()` function from the crate,
I went ahead and stole it.
* Add NetBSD target
* Fix FreeBSD clippy warnings
Fix `tmux` sessions
This will create a new session named `topgrade`, `topgrade-1`,
`topgrade-2`, using the first nonexistent session name it finds. That
session will have a window in it named `topgrade` in which `topgrade` is
run. If `topgrade --tmux` is being run from within tmux, it won't attach
to the new tmux session. If the user is not currently in tmux, it will
attach to the newly-created session.
Co-authored-by: Thomas Schönauer <37108907+DottoDev@users.noreply.github.com>
* Bump minimum Rust version to 1.60
As required by the `time` crate (`notify-rust` > `mac-notification-sys` > `time`).
* Simplify CI
Changes:
- Bump `actions/checkout` to v3, fixing a bunch of warnings.
- Replace unmaintained `actions-rs/cargo` by `dtolnay/rust-toolchain`.
- Run Rustfmt only once.
- Add support for cached dependencies (via `Swatinem/rust-cache`).
* Add Android target
Use the awesome `cross` tool for cross-compiling!
* Add FreeBSD target
* Closes#150 please disable distrobox by default (#151)
* Check if distrobox exists before running step
* Improve help prompt value names (#153)
* 159 self update error message with standalone versions (#161)
* Rename back to topgrade
* Bugfix Version bump
* Changes reference to topgrade-rs in self-update
* Fixes distrobox errors (#160)
* Rename back to topgrade
* Bugfix Version bump
* Check if distrobox exists before running step
* Fixed sitrobox and version bump
* Version bump to 10.1.2
Co-authored-by: Marcin Puc <tranzystorek.io@protonmail.com>