Commit Graph

53 Commits

Author SHA1 Message Date
Dan Sully
224bb96a98 chore: update toolchain to 1.84.1. apply clippy fixes & rustfmt (#1026)
* chore: update to stable toolchain. apply clippy fixes & rustfmt

* Bump MSRV

* Try MSRV without the patch version

* fix: pin toolchain to MSRV

* trying again

* fix dead code warning

---------

Co-authored-by: Dan Sully <dsully@users.noreply.github.com>
2025-02-03 11:24:57 +08:00
Florian Nagel
29c555c394 Add i18n by using rust i18n (#807)
* feat: initial i18n setup

* style: fmt

* feat: i18n support for new steps

* fix: build on Linux

* fix: build on Linux

* refactor: rm unused translation keys

---------

Co-authored-by: Steve Lau <stevelauc@outlook.com>
2024-10-03 18:47:35 +08:00
Dan Sully
9b0681f3b8 Add config flag to toggle verbose Git repository output. (#763)
* Add config flag to toggle verbose Git repository output.

If `true`: the default, no change.

If `false`: Only show repositories that have been updated or have an error.

Minor tweak to output (removed colon) so that copy and paste for 'cd' is nicer.
2024-04-14 10:28:03 +08:00
SteveLauC
2c1ce3d4e6 refactor: make GitSteps a dedicated step (#737) 2024-03-09 17:57:33 +08:00
Sam Vente
7e63977ba0 revert git pushing functionalities (#615) 2023-11-22 09:04:19 +08:00
SteveLauC
e1754707d8 refactor: remove legacy deprecated macros (#583) 2023-10-18 11:13:14 +08:00
Sam Vente
6b871e7949 switch git push and pull order (#578) 2023-10-15 17:06:40 +08:00
Sam Vente
fe9d877cdf Add support for pushing custom git repositories (#574) 2023-10-13 17:01:35 +08:00
Rebecca Turner
2a73aa731d Make error messages nicer (#551)
* Remove unhelpful information from errors

Before:

```
Git repositories failed:
   0: error: cannot pull with rebase: You have unstaged changes.
      error: Please commit or stash them.
   0:

Location:
   src/steps/git.rs:39

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
```

After:

```
Git repositories failed:
   0: Failed to pull /Users/wiggles/.dotfiles
   1: error: cannot pull with rebase: You have unstaged changes.
      error: Please commit or stash them.

Location:
   src/steps/git.rs:39
```

* Improve git_repos errors

This removes the extra blank "0:" line at the end of the error, doesn't
print the error message twice, and provides the repo path in the error
message.
2023-09-19 09:09:58 +08:00
Rebecca Turner
4dd1c13bd8 fix: fix "Nix" step to use nix upgrade-nix in more situations (#550)
`nix upgrade-nix` can be used on any platform except NixOS where `nix`
is available.

Also use `nix profile upgrade --verbose` because the non-verbose mode
doesn't print anything on stdout.
2023-09-17 15:40:04 +08:00
SteveLauC
7e48c5dedc fix: warn user about bad pattern paths before skipping step git (#456) 2023-06-01 07:16:01 +00:00
SteveLauC
76c39edc8b refactor: make all step functions take &ExectutionContext (#436) 2023-05-25 09:09:23 +02: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
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
Kamil Borsuk
2861044501 Don't panic on git repository with no remote (#71) 2022-10-26 09:21:57 +00:00
Thomas Schönauer
347372ca71 Resolves clippy errors, please review!!! (#60) 2022-10-23 11:34:30 +00: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
a39b4f846c Remove redundant dereferences 2021-09-02 07:27:09 +03:00
Roey Darwish Dror
8d55076cd3 Make clippy happy 2021-04-06 09:52:34 +03:00
Roey Darwish Dror
258acce481 Warn when no custom git repositories were found (fix #602) 2021-01-12 21:18:15 +02:00
Roey Darwish Dror
e3879a1c90 Dependencis bump (#595) 2021-01-07 10:03:20 +02:00
Roey Darwish Dror
e7768e0d39 Fix git failues not failing the step 2020-11-12 09:17:18 +02:00
Daniel Pittman
3a34672ee5 git/windows: fix output corruption when running git submodule (#543) 2020-10-07 20:25:54 +03:00
Roey Darwish Dror
417ca1257a Add --show-skipped (fix #501) (#502) 2020-08-21 23:04:36 +03:00
Roey Darwish Dror
612d74840e Git concurrency limit (#420) 2020-06-06 17:34:27 +03:00
Roey Darwish Dror
f58b2a0c20 Implement git pulling with Tokio (#408) 2020-05-15 11:11:28 +03:00
Ole Schönburg
c858a18bdd Skip git repos without remotes (#398) 2020-04-28 21:07:20 +03:00
Roey Darwish Dror
6692b74850 Update oh-my-zsh plugins (fix #360) (#363) 2020-03-08 21:38:49 +02:00
Roey Darwish Dror
694c7afc92 Avoid searching for git repos inside already detected repos (#357) 2020-03-04 10:32:58 +02:00
Roey Darwish Dror
d18de22b09 Get rid of Tokio 2020-01-05 23:01:03 +02:00
Roey Darwish Dror
cdfcea6ba8 Fix git repository pulling in Windows (fix #283) (#284) 2019-12-29 23:18:59 +02:00
Roey Darwish Dror
ba516aa1dd Migrate from failure to anyhow/thiserror (#273) 2019-12-11 23:05:38 +02:00
Roey Darwish Dror
e548cb4059 Make clippy happy 2019-09-28 15:13:01 +03:00
Ayala Shachar
3520d687c3 Use '--no-pager' flag for git-log (#228)
When there are a log of changes in the git step, topgrade might be "stack" in pager (e.g. less) until the user will manually exit it.
Using '--no-pager' flag allow all the changes to be printed to screen regardless of the amount of commits or the user's git configuration.
2019-09-24 10:22:48 +03:00
Roey Darwish Dror
c3a979caec Add a configuration variable to control git arguments (fix #193) 2019-09-04 21:31:23 +03:00
Roey Darwish Dror
71914ffde1 Fix typo 2019-08-11 12:48:04 +03:00
Roey Darwish Dror
7f164494d1 Support glob in get repositories (fix #184) 2019-08-11 12:41:09 +03:00
Roey Darwish Dror
50b020acb3 Revert "Check for pull changes using ORIG_HEAD"
ORIG_HEAD isn't very reliable
2019-07-31 11:17:28 +03:00
Roey Darwish Dror
5e51f9453e Show what's new in Git repositories (#183)
* Show what's new in Git repositories

* Check for pull changes using ORIG_HEAD

It seems that either `--rebase` or `--autostash` causes ORIG_HEAD not to change. We thought about it
further and decided that `--ff-only` is a safer option for git pull
2019-07-31 10:04:16 +03:00
Roey Darwish Dror
2d15814996 Perform git pulls in parallel (fix #48) 2019-05-22 10:36:19 +03:00
Roey Darwish Dror
1095f46a8a Remove execute legacy 2019-03-10 21:48:49 +02:00
Roey Darwish Dror
022115e237 Normalize paths in Windows (fix #113) (#116)
While `//?/C:/Users/Someone/config-files` is a valid path, it's not very human friendly.
Such paths are returned from `BaseDirs`. This patch formats them in the traditional way.
2019-01-30 16:00:10 +02:00
Roey Darwish Dror
ae75f0de9e No need to update submodules (fix #115)
Git pull should do that. In addition, it breaks the colors in Windows
2019-01-30 09:48:26 +02:00
Roey Darwish Dror
df27021277 Use the correct paths for Emacs (fix #112) 2019-01-27 20:30:29 +02:00
Roey Darwish Dror
1b2308aaef Add check_output 2019-01-01 22:22:07 +02:00