Innovenergy_trunk/csharp/Lib/SysTools/Edges/SysCommandToRemoteCommand.cs

12 lines
306 B
C#
Raw Normal View History

using InnovEnergy.Lib.SysTools.Remote;
2023-02-16 12:57:06 +00:00
namespace InnovEnergy.Lib.SysTools.Edges;
2023-02-16 12:57:06 +00:00
public static class SysCommandToRemoteCommand
{
public static RemoteCommand At(this SysCommand command, SshHost host)
{
var (path, args) = command;
return new RemoteCommand(host, path, args);
}
}