Commit Graph

58 Commits

Author SHA1 Message Date
SteveLauC
76c39edc8b refactor: make all step functions take &ExectutionContext (#436) 2023-05-25 09:09:23 +02:00
Utkarsh Gupta
327ed837c2 Replace directories with home & etcetera (#407)
* Use global lazy HOME_DIR

* Remove unused base_dirs

* Use `etcetera` instead of `directories`

---------

Co-authored-by: Thomas Schönauer <37108907+DottoDev@users.noreply.github.com>
2023-04-30 18:32:13 +00:00
Thomas Schönauer
ab630cfbc6 v10.2.5 release (#330)
* Don't show desktop notification on error (if `skip_notify = true`) (#275)

* Use ─ (U+2500) to draw borders (#282)

* Adds Pclinuxos support (#283)

* Add Devkitpro Pacman support (#291)

* Added support for Neovim package manager lazy.nvim (#293)

* Added support for lazy.nvim

From https://github.com/folke/lazy.nvim
Authored-by: Jacob Lane Ledbetter <jledbetter460@gmail.com>

* Make garuda-update update AUR packages by default (#296)

* fix(#298): Don't throw error if no Helm repository found (#305)

* Skip .NET when `dotnet tool list` is not successful (#302)

* feat(pacstall): add `-y` flag variant (#312)

* Add openSUSE MicroOS support (#315)

* Adds notify-send timeout of 10s (#318)

* Don't run yum when rpm-ostree is available (#313)

* don't run yum when rpm-ostree is available

* Clippy fix

* rpm-ostree: set default value to true

* Fixes if loop error

* Fixes gem update --system requires sudo now (#317)

* Fixes gem update --system requires sudo now

* rubygem: Adds arg -EH to sudo

* Use fixed nala path instead of which(nala) (#314)

* Adds notify-send bug warning when topgrade is run (#324)

* Adds notify-send bug warning when topgrade is run

* fix typo + clippy

* notify-send warning respects skip_notify flag

* nix: Adds additional arguments support (#325)

* Adds pip-review and pipupgrade support (#316)

* Adds pip-review and pipupgrade support

* Python: fixes pip_review and pipupgrade

* v10.2.5 patch (#329)

* WSL: Adds new wsl --update flags (#327)

* wsl: Updates available flags

* Clippy fix

* Add WslUpdate runner

* wsl: Code Typo

* wsl: Code Typos

* wsl: Code Typos

* wsl: Code Typo

* Adds AM Package Manager (#328)

* Adds AM Package Manager

* Clippy fixes

* Cargo fmt

* Moves am to linux only in main file

---------

Co-authored-by: Guilherme Silva <626206+guihkx@users.noreply.github.com>
Co-authored-by: Gabriel Augendre <gabriel@augendre.info>
Co-authored-by: Cat Core <34719527+arthurbambou@users.noreply.github.com>
Co-authored-by: Hugo Haas <hugoh@hugoh.net>
Co-authored-by: Baptiste <32563450+BapRx@users.noreply.github.com>
Co-authored-by: bbx0 <39773919+bbx0@users.noreply.github.com>
Co-authored-by: Sourajyoti Basak <wiz28@protonmail.com>
2023-01-29 19:19:27 +00:00
Roey Darwish Dror
cba9dc1c2c Fix windows build (#303) 2023-01-09 08:50:21 +01:00
Rebecca Turner
b31778bdd8 Add Sudo type (#221)
* 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>
2022-11-25 22:19:32 +00:00
Rebecca Turner
41e2321b93 Use tracing (#174) 2022-11-23 15:24:58 +00:00
Rebecca Turner
2cbb7db66d Use color_eyre (#173) 2022-11-23 15:24:58 +00:00
Rebecca Turner
e84173be8f Add CommandExt trait (#146)
* Color CI output

* Improve `CommandExt`

* Add comments explaining `#[allow]`s

* Remove useless `dead_code` annotation

* Improve error messages

* Print errors when running a shell errors

* fixup! Remove useless `dead_code` annotation
2022-11-23 15:24:58 +00:00
Thomas Schönauer
bd34a3bcd4 Revert "10.2.0 release " (#215)
Revert "10.2.0 release  (#213)"

This reverts commit 13076fcef6.
2022-11-23 16:23:00 +01:00
Thomas Schönauer
13076fcef6 10.2.0 release (#213) 2022-11-23 15:18:09 +00:00
Thomas Schönauer
3ebaac3a1d Fix windows clippy errors (#135)
* Changes windows get_wsl_distribution argument

* changes in get_wsl_distributions

* changes in run_wsl_topgrade due to clippy errors

* Resolves needless borrow
2022-11-03 21:43:45 +00:00
Thomas Schönauer
e4f8488837 Revert "Get windows to finish clippy without errors" (#134)
Revert "Get windows to finish clippy without errors (#133)"

This reverts commit 16953409fd.
2022-11-03 19:49:01 +00:00
Thomas Schönauer
16953409fd Get windows to finish clippy without errors (#133)
* Changes windows get_wsl_distribution argument

* changes in get_wsl_distributions

* changes in run_wsl_topgrade due to clippy errors
2022-11-03 19:34:27 +00:00
Thomas Schönauer
7256aaffc8 Resolve clippy errors (#131)
* Resolves clippy errors

* Fixes clippy errors

* Changes get_wsl_distributions arguments from pointer to value
2022-11-03 19:04:06 +00:00
Thomas Schönauer
66e0b94e85 Resolve clippy errors (#130)
* Resolves clippy errors

* Fixes clippy errors
2022-11-03 18:54:40 +00:00
Roey Darwish Dror
5166f651ea Don't fail if there are no Github extensions (fix #877) 2022-03-29 03:43:13 +03:00
Roey Darwish Dror
cea32020ce Disable winget by default 2022-03-05 21:58:36 +02:00
Roey Darwish Dror
4230388017 Support multiple WSL distributions (fix #855) (#858) 2022-02-13 08:08:18 +02:00
Roey Darwish Dror
ab3ff0ecae Selective yes (fix #802) (#808)
* Selective yes flag (fix #802)

* Selective yes flag (fix #802)

* selective yes

* MacOS
2021-12-06 14:44:20 +02:00
Roey Darwish Dror
539b267eef Support rust 1.51.0 (#789) 2021-10-28 22:05:35 +03:00
Marcin Puc
1478d079ca Add minor refactorings (#754) 2021-09-04 21:01:19 +03:00
Roey Darwish Dror
9205649a5f Support winget (fix #721) (#722) 2021-06-03 13:08:17 +03:00
Roey Darwish Dror
7d85ecca7c Revert "No need to run which in WSL (fix #694) (#707)"
This reverts commit ac4c23929e.
2021-05-13 21:53:13 +03:00
Roey Darwish Dror
ac4c23929e No need to run which in WSL (fix #694) (#707)
* No need to run which in WSL (fix #694)

* clippy
2021-05-10 09:40:23 +03:00
Roey Darwish Dror
4bbebf32dd Clippy 2021-05-08 22:50:42 +03:00
Roey Darwish Dror
cf63db2786 Remove Microsoft store (fix #674) 2021-04-23 07:01:11 +03:00
Roey Darwish Dror
23d9a5bf63 Fix Microsoft Store (fix #656)
Despite the fact that Topgrade explicitly tries to run the Windows Powershell, gsudo has an odd behaviour which causes it to detect whether it's being run from Powershell for Cmd.
If run from Powershell, It will launch the current powershell with the given command. If the current shell is Powershell, it will try to run the command with it.
However, Get-WmiObject doesn't exist on Powershell core.
2021-02-25 10:10:57 +02:00
Roey Darwish Dror
eb358c1a88 Use redirection to $null instead of Out-Null (fix #651) 2021-02-22 10:37:35 +02:00
Roey Darwish Dror
4fe3c257b6 Fixed Microsoft Store terminology 2021-02-18 14:20:30 +02:00
Roey Darwish Dror
8af7910df0 Fix WSL 2021-02-13 07:05:58 +02:00
Roey Darwish Dror
746ffda444 Windows App Store (fix #622) (#624) 2021-02-11 06:31:59 +02:00
Roey Darwish Dror
62ec3a94e6 Revert "wsl fix" (fix #612)
This reverts commit db1dea9bea.
2021-02-06 06:56:26 +02:00
Roey Darwish Dror
66e62cc3eb Windows: look for git repos in the startup directory 2021-02-02 22:28:22 +02:00
Roey Darwish Dror
417ca1257a Add --show-skipped (fix #501) (#502) 2020-08-21 23:04:36 +03:00
Roey Darwish Dror
d48182e6bd Pass -y to WSL if necessary 2020-08-21 21:10:54 +03:00
Roey Darwish Dror
db1dea9bea wsl fix 2020-08-18 08:39:23 +03:00
Roey Darwish Dror
065565240e Automatically detect gsudo (#469) 2020-07-10 11:21:19 +03:00
chhe
64fbf606df option to use choco with gsudo on windows (#463) 2020-07-06 14:36:45 +03:00
Oleksii Filonenko
d838eb588b Add support for -y flag in Chocolatey (#457) 2020-06-30 11:55:39 +03:00
Roey Darwish Dror
670dbd1f64 Use the built in Windows update client 2020-02-27 22:06:14 +02:00
Roey Darwish Dror
b91fa4e26c Add cleanup support for scoop (fix #311) 2020-01-30 20:32:37 +02:00
Roey Darwish Dror
ba516aa1dd Migrate from failure to anyhow/thiserror (#273) 2019-12-11 23:05:38 +02:00
Roey Darwish Dror
4ae0263e0d Support PowerShell core (fix #189) 2019-08-15 08:46:54 +03:00
Roey Darwish Dror
a834a79f45 Add reboot and shell ability in pause 2019-06-16 08:32:50 +03:00
Roey Darwish Dror
4a7218293b Add a key for running remote topgrades 2019-06-05 14:16:53 +03:00
Roey Darwish Dror
5b179d93d9 Run WSL in Topgrade if present (fix #163) 2019-06-04 14:56:49 +03:00
Roey Darwish Dror
187452b31a Fix missing check that the Powershell profile actually exists (fix #157) 2019-05-25 21:28:16 +03:00
Roey Darwish Dror
a85311608e Windows step refactoring 2019-02-11 20:38:51 +02:00
Roey Darwish Dror
e2d42b77a7 Run Powershell module update with verbose output 2019-02-11 20:30:32 +02:00
Roey Darwish Dror
4f981fd504 Only update Powershell modules if profile is present and allow disabling this step (fix #114) 2019-01-27 20:30:29 +02:00