Commit Graph

1154 Commits

Author SHA1 Message Date
Roey Darwish Dror
c166d51fb8 Add --custom-command (#927)
* Add --custom-command
Fixes #922

* fix
2022-05-07 12:25:51 +00:00
Roey Darwish Dror
fdf03f6548 Support deb-get (#925) 2022-05-07 06:14:20 +00:00
Roey Darwish Dror
8e7fd6772d Add the --env flag (#926)
#915
2022-05-07 05:11:53 +00:00
Roey Darwish Dror
84c3a0f4d1 Don't try to upgrade nix if it's not a part of a profile (#924) 2022-05-07 02:24:54 +03:00
morero
08e8b56b75 Add: Add new zsh plugin "zi" (#921) 2022-05-06 15:37:28 +00:00
Roey Darwish Dror
591f23e2f7 No 'failed step' notification (#917) 2022-05-06 12:44:27 +03:00
Roey Darwish Dror
5d168bbf0d pip should be executed via the regular python executable (#913)
Fixes #910
2022-05-01 17:47:14 +00:00
Roey Darwish Dror
6158a17ba8 Fix workflow (#912) 2022-05-01 17:31:18 +00:00
Roey Darwish Dror
ad694b56f7 Fix self-update (#911) 2022-05-01 19:19:44 +03:00
Akeshihiro
d7e5446c7c Fix docs of arch_package_manager fn (#909) 2022-05-01 07:01:09 +03:00
Roey Darwish Dror
71ce5c8d30 Use rustls (fix #906) (#908) 2022-04-30 13:17:27 +00:00
Roey Darwish Dror
336f529410 "Ultimate vimrc" support (#904)
* "Ultimate vimrc" support
Fixes #856

* Fix

* fix
2022-04-23 12:39:58 +00:00
Roey Darwish Dror
14809322b4 Vagrant boxes (#905) 2022-04-23 12:09:54 +00:00
Marcin Puc
020a0619b8 Upgrade arg parsing to clap v3, take two (#900)
* Upgrade arg parsing to clap v3

* Bump Rust version in CI to 1.57.0

* Make clippy happy

Co-authored-by: Roey Darwish Dror <roey.ghost@gmail.com>
2022-04-23 13:35:06 +03:00
Roey Darwish Dror
8c7f8b0fbd Remove the silnite option 2022-04-22 23:31:46 +03:00
GPery
1a18174693 Add pikaur support (#898) 2022-04-22 23:28:01 +03:00
Michele Bologna
7e9b2dca39 Fix: correct option name (#902)
The option name is now `pull_predefined`. This commit fixed the template config with the new option name
2022-04-22 23:26:00 +03:00
Aditya Alok
ff7a4f3df9 Fix building for Android, enable tlmgr updates (#896)
* fix(os/unix): cannot find `SkipStep` while building for android

ERROR: cannot find function, tuple struct or tuple variant `SkipStep`

Disable updating gnome extensions for Android.

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>

* feat: enable `tlmgr` updates for android

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-22 23:20:17 +03:00
Roey Darwish Dror
5d0f09cf5c Bump 2022-04-11 20:16:37 +03:00
Roey Darwish Dror
d0e1212700 Don't run gnome shell extensions if unneeded (fix #835) (#893)
* Don't call gnome shell extensions if it's not registered in dbus (fix #835)

* fix

* Execute-elevated (#892)

* Introduce the execute elevated method (fix #885)

* fmt

* Fix nix with doas

* Bad import

* No gnome in macOS

* Unused imports
2022-04-11 20:15:18 +03:00
Sandro
9ed518c82a Always display quit (#894)
you can always press q to quit so it should also always be displayed
2022-04-11 19:46:16 +03:00
Roey Darwish Dror
5ecf8300ef Execute-elevated (#892)
* Introduce the execute elevated method (fix #885)

* fmt

* Fix nix with doas

* Bad import
2022-04-09 16:29:55 +03:00
Roey Darwish Dror
5de33a91d1 Detect fisher in a custom path (fix #878) 2022-04-09 15:35:02 +03:00
John Karahalis
e7485de501 Fix capitalization of GitHub 2022-04-04 09:35:38 +03:00
Roey Darwish Dror
13104a029c Add option to control the time display (fix #860) 2022-03-29 03:48:02 +03: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
8dd2eb7532 Remove silnite (fix #873) 2022-03-29 03:18:03 +03:00
Sagi Sarussi
99645b132a images -> image ls
Use the same format for all `docker image` commands
2022-03-27 20:04:50 +03:00
Roey Darwish Dror
b1e04eb5cb clippy 2022-03-23 22:34:41 +02:00
Armel Soro
ca4ffac6fb Add support for upgrading GitHub CLI Extensions 2022-03-23 22:31:58 +02:00
Roey Darwish Dror
44cba22d69 Deps 2022-03-23 22:31:18 +02:00
Roey Darwish Dror
10012394eb Bump 2022-03-23 22:23:37 +02:00
Funky185540
72ee6598a6 Upgrade podman/docker containers (#850)
* containers: Pull newer versions of containers

Allows topgrade to update a users containers. It will automatically skip
containers which come from the `localhost` repo as these are self-built.
Respects the version number the containers were initially checked out
with in order not to introduce semver-breaking changes.

Works with podman and docker.

* topgrade: Add 'containers' step

* containers: Ignore some errors for docker

This patch is needed to achieve compatibility between docker and podman.
In particular, docker doesn't store/tell the user from which repository
(i.e. `hub.docker.com`, or `registry.fedoraproject.org`) a container
originates. This has the side-effect, that self-built containers cannot
be distinguished from publicly available containers. Therefore this
patch introduces an exception to the error handling when pulling, by
scanning the output of the `docker pull` command. If it finds the
`registry does not exist` substring in the output, it will skip the
container but **NOT** consider the whole update step failed.

* containers: Skip '<none>' containers

that result from either intermediate products of a container build or
when images are dangling.

* steps: containers: simplify error handling

And don't return errors from within the "unknown container registry"
handling, since that would immediately terminate the whole update which
isn't intended.
2022-03-05 22:00:07 +02:00
Sven Hergenhahn
afa3171d99 Add zgenom zsh plugin manager (#862)
- add the required functionality for zgenom
 - fix the env::var for zinit - it should be ZINIT_HOME, not ZBXF, as
   this is also set in zgenom, but makes topgrade fail when zinit is not
   installed

Co-authored-by: Sven Hergenhahn <sven.hergenhahn@dm.de>
2022-03-05 22:00:07 +02:00
Roey Darwish Dror
cea32020ce Disable winget by default 2022-03-05 21:58:36 +02:00
Funky185540
547df8d346 vim: Support updating dein (#857)
`dein` is a plugin manager for vim, which was supported for a while in
an earlier version of topgrade. This patch reintroduces support for
upgrading "plain" `dein`, rather that the `dein` UI which is invoked by
`DeinUpdate` in vim.
2022-02-13 08:08:36 +02:00
Roey Darwish Dror
4230388017 Support multiple WSL distributions (fix #855) (#858) 2022-02-13 08:08:18 +02:00
Leonardo Eugênio
0251c2769b Support for updating kakoune plugins with kak-plug (#852) 2022-02-06 23:48:06 +02:00
Leonardo Eugênio
54e3d87b23 Support yes flag for Void (#851) 2022-02-06 23:47:52 +02:00
Roey Darwish Dror
d43b6293b6 Make clippy happy 2022-02-06 20:49:29 +02:00
Funky185540
d15bc32614 linux: Ignore "--yes" for rpm-ostree upgrade (#849)
Previously when performing the "system" upgrade step, rpm-ostree would
be passed a "--yes" argument when it was configured in topgrade.
However, this is not an option available for rpm-ostree, so it would
cause an error and abort execution of the updates.
2022-02-01 12:46:27 +02:00
Janek
c9b846bd6b Update Issue Templates (#848)
* Update feature_request.md

* Update bug_report.md
2022-01-30 14:05:21 +02:00
Roey Darwish Dror
5e7453b387 Make ConfigUpdate an individual step (fix #843) 2022-01-26 22:52:52 +02:00
Roey Darwish Dror
5f4dd33f1f Don't run pacdiff when --yes is specified (fix #846) 2022-01-26 22:51:00 +02:00
Macavirus
6b09212814 Fix typo (#845) 2022-01-26 22:21:35 +02:00
Roey Darwish Dror
0525e5aac3 Do not run Conda if auto_activate_base is set to False (#841) 2022-01-24 22:05:52 +02:00
Roey Darwish Dror
63f4e01650 Preserve DIFFPROG when running Pacdiff in sudo (fix #842) 2022-01-24 20:32:48 +02:00
Roey Darwish Dror
912dd006a1 Version bump 2022-01-24 12:11:02 +02:00
Funky185540
da8cf9da05 Enable updating Toolbx through topgrade (#830)
* steps: toolbox: Add module to upgrade toolboxes

This adds a module to upgrade all toolboxes found on a host system.
[Toolbox][1] (More recently: `toolbx`) is a tool that easily provides
mutable, containerized command line environments. It is a means to work
and develop in a mutable environment on immutable operating systems such
as Fedora Silverblue, CoreOS, Kinoite and much more. However, it is not
limited to these use cases.

The integration into topgrade works as follows: Toolbx makes many of the
hosts folders available form inside the toolbx container by default. In
particular, all of the hosts filesystem is mapped under `/run/host`. This
module exploits this fact by:

- Gathering a list of toolboxes available on the host that runs
  `topgrade`
- Executing `toolbox run` for each of these toolboxes to run a command
  inside the toolboxes, **using the executing `topgrade` executable with
  the `--only system` arguments**

[1]: https://containertoolbx.org/

* toolbx: Integrate toolbx into the application

* Toolbx is Linux specific

Co-authored-by: Roey Darwish Dror <roey.ghost@gmail.com>
2022-01-24 12:10:21 +02:00
Roey Darwish Dror
4932be15a3 Bump deps 2022-01-24 12:10:02 +02:00