Commit Graph

99 Commits

Author SHA1 Message Date
b381e6fa7f [WIP] Integration of TestEnvironment 2025-03-30 00:28:00 +01:00
d87cd468cc [WIP] Integration of TestEnvironment 2025-02-08 22:49:11 +01:00
b6a6e63358 Revert Environment needing to be ShellInterface 2025-02-07 14:10:13 +01:00
1230a3ea07 Require Environment to be ShellInterface 2025-02-07 14:08:38 +01:00
a324935005 Rework how EnvCommand and ShellInterface interact with each other 2025-02-07 14:05:20 +01:00
d963d4ff88 Fix test_parse_server_configuration 2025-02-07 13:03:22 +01:00
89cd5232cf Remove old command module 2025-02-05 23:56:44 +01:00
7c64383d72 Use new ShellCommand interface in main application 2025-02-05 23:55:06 +01:00
85a9cd9ae5 Implement ShellCommand to Command conversion 2025-02-05 22:32:45 +01:00
ca7be76937 Remove minor code duplication 2025-02-05 21:19:07 +01:00
6b0b648d67 Implement ShellInterface for EnvCommand 2025-02-05 21:16:45 +01:00
4095ee32f6 Make environment in EnvCommand mutable 2025-02-05 00:02:54 +01:00
8315549838 Make into_result_with_error_logging available for every MaybeCast<Output> type 2025-02-04 23:52:06 +01:00
6c7e718748 Fix ServerReferences using invalid parser 2025-02-04 23:43:11 +01:00
0632d7b0a9 Handle input in environment 2025-02-04 23:09:02 +01:00
85b0b3dbbf Add shell_interface and environment and prepare main application for those changes 2025-02-04 16:33:00 +01:00
8fa7fdb88b Merge pull request '29-replacing-actions-ignore-directory-of-file-to-upload' (#30) from 29-replacing-actions-ignore-directory-of-file-to-upload into master
Reviewed-on: https://stupstech.de/dev/Mr_Steppy/multi-ssh/pulls/30
2025-02-03 23:55:38 +01:00
75368d4c0c Really fix uploading wrong file in replace actions 2025-02-03 23:52:42 +01:00
3aa326e737 Fix wrong command when querying server files 2025-02-03 23:14:36 +01:00
744fd0f6c2 Remove unused FileInfoError variant 2025-02-03 23:05:23 +01:00
a288bf58a5 Fix replace actions replacing with wrong file 2025-02-03 23:03:16 +01:00
8618e563dc Merge pull request '27 ShellCommand on localhost when calculating actions' (#28) from 27-shell-command-on-localhost-when-calculating-actions into master
Reviewed-on: https://stupstech.de/dev/Mr_Steppy/multi-ssh/pulls/28
2025-02-03 22:34:21 +01:00
02619870b9 Rename os_string_extension.rs to os_str_extension.rs 2025-02-03 22:33:30 +01:00
67eca84f9d Add unit tests for osstring extensions 2025-02-03 22:32:47 +01:00
ad710581b3 Add os_string_extension.rs and refactor FileNameInfo 2025-02-03 22:11:25 +01:00
c143b29a3d Avoid lossy strings when renaming and matching files 2025-02-03 18:06:57 +01:00
d1924aa758 Refactor FileMatcher to use OsString 2025-02-03 18:01:54 +01:00
faf4e47cac Don't use shell command on local machine 2025-02-03 17:55:34 +01:00
0109bf6c6f Add TODO for bug 2025-02-03 16:54:42 +01:00
bc54a2d418 Merge pull request 'Add exclusion flag to upload command' (#25) from 23-upload-exclusion-flag into master
Reviewed-on: https://stupstech.de/dev/Mr_Steppy/multi-ssh/pulls/25
2025-02-03 16:09:35 +01:00
290a64d0ab Add exclusion flag to upload command 2025-02-03 16:08:36 +01:00
93eed1dc7f Merge pull request 'Add pure flag to upload command' (#24) from 22-upload-pure-flag into master
Reviewed-on: https://stupstech.de/dev/Mr_Steppy/multi-ssh/pulls/24
2025-02-03 15:37:14 +01:00
c9b95d2b0c Add pure flag to upload command 2025-02-03 15:36:16 +01:00
1633636cab Merge pull request '20-dot-and-wildcard-paths-are-not-correctly-resolved-when-reffering-to-remote-files-or-ssh-targets' (#21) from 20-dot-and-wildcard-paths-are-not-correctly-resolved-when-reffering-to-remote-files-or-ssh-targets into master
Reviewed-on: https://stupstech.de/dev/Mr_Steppy/multi-ssh/pulls/21
2025-02-03 13:25:39 +01:00
6d8b16b011 Fix canonicalization adding files with empty name 2025-02-03 13:14:40 +01:00
2eb37aa07a Fix canonicalization of remote files 2025-02-03 13:05:47 +01:00
ffd8f71f8b Add collect_full_output method to commands 2025-02-03 12:33:15 +01:00
930e02d802 Add remaining TODOs 2025-02-03 02:19:01 +01:00
6e4a23254a Canonicalize files to upload if they are on remote server 2025-02-03 01:47:36 +01:00
329ba8f381 Canonicalize upload directory when uploading to local 2025-02-03 00:51:56 +01:00
da2b6097e9 Add relative local path ankers, when parsing servers 2025-02-03 00:29:23 +01:00
f2f7f3bae9 Merge pull request 'Support uploading multiple files' (#19) from 13-allow-multiple-files-in-upload-command into master
Reviewed-on: https://stupstech.de/dev/Mr_Steppy/multi-ssh/pulls/19
2025-02-02 22:07:09 +01:00
04a8ebef38 Support uploading multiple files 2025-02-02 22:04:59 +01:00
60f5055c5e Merge pull request '15-allow-uploading-files-from-another-server' (#18) from 15-allow-uploading-files-from-another-server into master
Reviewed-on: https://stupstech.de/dev/Mr_Steppy/multi-ssh/pulls/18
2025-02-02 14:25:26 +01:00
167f557d3a Add example to README.md 2025-02-02 14:23:57 +01:00
4b4c7b9416 Add file-server parameter to upload command 2025-02-02 14:16:16 +01:00
aa1f53d225 Merge pull request 'Allow localhost as server target' (#17) from 14-allow-locahost-as-server-target into master
Reviewed-on: https://stupstech.de/dev/Mr_Steppy/multi-ssh/pulls/17
2025-02-02 02:25:16 +01:00
b6b389e5a0 Allow localhost as server target 2025-02-02 02:23:25 +01:00
a83cf1013c Merge pull request 'Rename working-directory flag to download-directory and use ~/Downloads as default download directory' (#16) from #7-Use-home-downloads-as-default-directory-for-downloads into master
Reviewed-on: https://stupstech.de/dev/Mr_Steppy/multi-ssh/pulls/16
2025-02-01 13:54:04 +01:00
71d089512e Rename working-directory flag to download-directory and use ~/Downloads as default download directory 2025-02-01 13:52:34 +01:00