| 102 | } |
| 103 | |
| 104 | bool InvokeApp::push(const std::filesystem::path& path) |
| 105 | { |
| 106 | LogFunc << VAR(path); |
| 107 | |
| 108 | std::string absolute_path = path_to_utf8_string(std::filesystem::absolute(path)); |
| 109 | merge_replacement({ { "{BIN_PATH}", absolute_path }, { "{BIN_WORKING_FILE}", tempname_ } }); |
| 110 | |
| 111 | auto argv_opt = push_bin_argv_.gen(argv_replace_); |
| 112 | if (!argv_opt) { |
| 113 | return false; |
| 114 | } |
| 115 | |
| 116 | auto output_opt = startup_and_read_pipe(*argv_opt); |
| 117 | if (!output_opt) { |
| 118 | return false; |
| 119 | } |
| 120 | |
| 121 | pushed_ = true; |
| 122 | return true; |
| 123 | } |
| 124 | |
| 125 | bool InvokeApp::chmod() |
| 126 | { |
no test coverage detected