improve SshHost usability
This commit is contained in:
parent
4b510f6448
commit
ac32e4be09
|
@ -26,4 +26,8 @@ public class SshHost
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task<Boolean> Ping() => HostName.Ping();
|
public Task<Boolean> Ping() => HostName.Ping();
|
||||||
|
|
||||||
|
public static implicit operator SshHost(String hostname) => new SshHost(hostname);
|
||||||
|
|
||||||
|
public override String ToString() => Command.ToString();
|
||||||
}
|
}
|
Loading…
Reference in New Issue