Commit Graph

28 Commits

Author SHA1 Message Date
Rebecca Turner
71883d7164 Fix tmux panic (#165)
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>
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
8731fd2b3f Resolves clippy errors (#128) 2022-11-03 18:29:22 +00:00
Rebecca Turner
55ba2d30c1 Quote arguments when executing in a shell (#118)
* Quote arguments when executing in a shell

Fixes #107

* Parse quotes in `tmux_arguments`

This makes it possible to encode spaces in arguments. Maybe the config
value should be an array instead?

* Print error causes

Co-authored-by: Thomas Schönauer <37108907+DottoDev@users.noreply.github.com>
2022-11-03 16:46:43 +00:00
pan93412
a7c2262537 refactor: Run cargo clippy --fix (#113) 2022-11-02 20:26:20 +00:00
Pascal Jufer
b81f28a73a Use upper-case naming (Topgrade) everywhere (#96) 2022-11-01 22:21:30 +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
f4a1f26e39 Remoting refactor (#503) 2020-08-22 14:46:17 +03:00
Alex Hamilton
69b9c4b24c Add remote_topgrade_path configuration option 2020-07-10 10:45:15 +03:00
Roey Darwish Dror
94d230dc65 Fix tmux execution (#417) (fix #413) 2020-06-03 22:12:45 +03:00
Roey Darwish Dror
d08de25731 Remove unnecessary tmux flag (fix #275) 2020-05-14 09:56:41 +03:00
Roey Darwish Dror
ba516aa1dd Migrate from failure to anyhow/thiserror (#273) 2019-12-11 23:05:38 +02:00
Roey Darwish Dror
1ea9b91e11 More informative tmux errors 2019-12-08 21:00:22 +02:00
Roey Darwish Dror
8ce55f4c31 Add support for passing arguments to tmux (fix #236) (#250) 2019-11-06 07:27:01 +02:00
Roey Darwish Dror
15510b7280 Don't set the tmux title
Setting the window title prevents automatic rename
2019-08-04 08:59:14 +03:00
Roey Darwish Dror
5e012a957f Keep execution of remote topgrades 2019-06-17 08:16:08 +03:00
Roey Darwish Dror
79febd78b5 Run remote Topgrades in Tmux 2019-06-13 16:43:23 +03:00
Roey Darwish Dror
e5d0f4cbfa Implemented the pause in tmux in a different way 2019-06-13 16:22:03 +03:00
Roey Darwish Dror
1095f46a8a Remove execute legacy 2019-03-10 21:48:49 +02:00
Roey Darwish Dror
f3f8f322d8 Add check_run() 2018-12-31 22:00:34 +02:00
Roey Darwish Dror
957d73c634 Don't pass dry_run as a boolean to functions 2018-12-31 13:26:17 +02:00
Roey Darwish Dror
47a271af47 Modules refactor 2018-12-17 09:40:38 +02:00