26-integration-tests #35

Merged
Mr_Steppy merged 16 commits from 26-integration-tests into master 2026-08-26 18:35:30 +02:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 0b0ff84c30 - Show all commits

View File

@ -7,7 +7,7 @@ use std::ffi::{OsStr, OsString};
use std::path::PathBuf;
use std::{env, io};
pub trait Environment: ShellInterface {
pub trait Environment {
fn args_os(&self) -> Vec<OsString>;
fn var<K>(&self, key: K) -> Result<String, VarError>
where

View File

@ -16,7 +16,7 @@ use crate::logger::{LogLevel, Logger};
use crate::os_str_extension::OsStrExtension;
use crate::os_string_builder::ReplaceWithOsStr;
use crate::server::{RelativeLocalPathAnker, ServerAddress};
use crate::shell_interface::{ScpParam, ServerCommand, ShellCommand};
use crate::shell_interface::{ScpParam, ServerCommand, ShellCommand, ShellInterface};
use clap::{Parser, Subcommand, ValueEnum};
use lazy_regex::{lazy_regex, Lazy, Regex};
use server::{Server, ServerReference};
@ -145,7 +145,7 @@ pub struct Application<E> {
impl<E> Application<E>
where
E: Environment,
E: Environment + ShellInterface,
{
pub fn run(&mut self) -> Result<(), String> {
let args = Args::try_parse_from(self.environment.args_os()).map_err(|e| e.to_string())?;