-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
635 additions
and
635 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<Platforms>ARM64;x64</Platforms> | ||
<RuntimeIdentifiers>win-x64;win-arm64</RuntimeIdentifiers> | ||
<GeneratePackageOnBuild>False</GeneratePackageOnBuild> | ||
<Title>Loom</Title> | ||
<AssemblyVersion>1.12.1.0</AssemblyVersion> | ||
<FileVersion>1.12.1.0</FileVersion> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<StartupObject>Loom.Program</StartupObject> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="CommandLineParser" Version="2.9.1" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\TableCloth.Resources\TableCloth.Resources.csproj" /> | ||
</ItemGroup> | ||
|
||
<Import Project="..\TableCloth.Shared\TableCloth.Shared.projitems" Label="Shared" /> | ||
|
||
</Project> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<Platforms>ARM64;x64</Platforms> | ||
<RuntimeIdentifiers>win-x64;win-arm64</RuntimeIdentifiers> | ||
<GeneratePackageOnBuild>False</GeneratePackageOnBuild> | ||
<Title>Cloth</Title> | ||
<AssemblyVersion>1.12.1.0</AssemblyVersion> | ||
<FileVersion>1.12.1.0</FileVersion> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<StartupObject>Cloth.Program</StartupObject> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="CommandLineParser" Version="2.9.1" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\TableCloth.Resources\TableCloth.Resources.csproj" /> | ||
</ItemGroup> | ||
|
||
<Import Project="..\TableCloth.Shared\TableCloth.Shared.projitems" Label="Shared" /> | ||
|
||
</Project> |
164 changes: 82 additions & 82 deletions
164
src/Loom/Options/ComposeOption.cs → src/Cloth/Options/ComposeOption.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,82 @@ | ||
using CommandLine; | ||
using System.IO.Compression; | ||
|
||
namespace Loom.Options; | ||
|
||
[Verb("compose", HelpText = "Write an extended Windows Sandbox package zip file.")] | ||
public sealed class ComposeOption | ||
{ | ||
[Option('g', "virtual-gpu", | ||
HelpText = "Enable or disable Virtual GPU.", | ||
Required = false)] | ||
public bool? VirtualGpu { get; set; } | ||
|
||
[Option('n', "networking", | ||
HelpText = "Enable or disable networking.", | ||
Required = false)] | ||
public bool? Networking { get; set; } | ||
|
||
[Option('v', "video-input", | ||
HelpText = "Enable or disable video input (camera).", | ||
Required = false)] | ||
public bool? VideoInput { get; set; } | ||
|
||
[Option('a', "audio-input", | ||
HelpText = "Enable or disable audio input (microphone).", | ||
Required = false)] | ||
public bool? AudioInput { get; set; } | ||
|
||
[Option('s', "protected-client", | ||
HelpText = "Enable or disable protected client.", | ||
Required = false)] | ||
public bool? ProtectedClient { get; set; } | ||
|
||
[Option('p', "printer-redirection", | ||
HelpText = "Enable or disable printer redirection.", | ||
Required = false)] | ||
public bool? PrinterRedirection { get; set; } | ||
|
||
[Option('c', "clipboard-redirection", | ||
HelpText = "Enable or disable clipboard redirection.", | ||
Required = false)] | ||
public bool? ClipboardRedirection { get; set; } | ||
|
||
[Option('z', "memory-size", | ||
HelpText = "Memory in mega-byte size.", | ||
Required = false)] | ||
public int? MemorySizeInMb { get; set; } | ||
|
||
[Option('l', "compression-level", | ||
HelpText = "Compression level.", | ||
Required = false, | ||
Default = CompressionLevel.Optimal)] | ||
public CompressionLevel CompressionLevel { get; set; } | ||
|
||
[Option("startup-command", | ||
HelpText = "Startup inline DOS command.", | ||
SetName = nameof(StartupCommand), | ||
Required = false)] | ||
public string? StartupCommand { get; set; } | ||
|
||
[Option("startup-batch-file", | ||
HelpText = "Startup batch file path.", | ||
SetName = nameof(StartupBatchFilePath), | ||
Required = false)] | ||
public string? StartupBatchFilePath { get; set; } | ||
|
||
[Option('i', "include", | ||
HelpText = "Files to include.", | ||
Required = false)] | ||
public IEnumerable<string>? FilesToInclude { get; set; } | ||
|
||
[Option('f', "force", | ||
HelpText = "Overwrite output file.", | ||
Default = false, | ||
Required = false)] | ||
public bool OverwriteOutputFilePath { get; set; } | ||
|
||
[Option('o', "output", | ||
HelpText = "Output file path.", | ||
Required = true)] | ||
public string OutputFilePath { get; set; } = "output.wsbx"; | ||
} | ||
using CommandLine; | ||
using System.IO.Compression; | ||
|
||
namespace Cloth.Options; | ||
|
||
[Verb("compose", HelpText = "Write an extended Windows Sandbox package zip file.")] | ||
public sealed class ComposeOption | ||
{ | ||
[Option('g', "virtual-gpu", | ||
HelpText = "Enable or disable Virtual GPU.", | ||
Required = false)] | ||
public bool? VirtualGpu { get; set; } | ||
|
||
[Option('n', "networking", | ||
HelpText = "Enable or disable networking.", | ||
Required = false)] | ||
public bool? Networking { get; set; } | ||
|
||
[Option('v', "video-input", | ||
HelpText = "Enable or disable video input (camera).", | ||
Required = false)] | ||
public bool? VideoInput { get; set; } | ||
|
||
[Option('a', "audio-input", | ||
HelpText = "Enable or disable audio input (microphone).", | ||
Required = false)] | ||
public bool? AudioInput { get; set; } | ||
|
||
[Option('s', "protected-client", | ||
HelpText = "Enable or disable protected client.", | ||
Required = false)] | ||
public bool? ProtectedClient { get; set; } | ||
|
||
[Option('p', "printer-redirection", | ||
HelpText = "Enable or disable printer redirection.", | ||
Required = false)] | ||
public bool? PrinterRedirection { get; set; } | ||
|
||
[Option('c', "clipboard-redirection", | ||
HelpText = "Enable or disable clipboard redirection.", | ||
Required = false)] | ||
public bool? ClipboardRedirection { get; set; } | ||
|
||
[Option('z', "memory-size", | ||
HelpText = "Memory in mega-byte size.", | ||
Required = false)] | ||
public int? MemorySizeInMb { get; set; } | ||
|
||
[Option('l', "compression-level", | ||
HelpText = "Compression level.", | ||
Required = false, | ||
Default = CompressionLevel.Optimal)] | ||
public CompressionLevel CompressionLevel { get; set; } | ||
|
||
[Option("startup-command", | ||
HelpText = "Startup inline DOS command.", | ||
SetName = nameof(StartupCommand), | ||
Required = false)] | ||
public string? StartupCommand { get; set; } | ||
|
||
[Option("startup-batch-file", | ||
HelpText = "Startup batch file path.", | ||
SetName = nameof(StartupBatchFilePath), | ||
Required = false)] | ||
public string? StartupBatchFilePath { get; set; } | ||
|
||
[Option('i', "include", | ||
HelpText = "Files to include.", | ||
Required = false)] | ||
public IEnumerable<string>? FilesToInclude { get; set; } | ||
|
||
[Option('f', "force", | ||
HelpText = "Overwrite output file.", | ||
Default = false, | ||
Required = false)] | ||
public bool OverwriteOutputFilePath { get; set; } | ||
|
||
[Option('o', "output", | ||
HelpText = "Output file path.", | ||
Required = true)] | ||
public string OutputFilePath { get; set; } = "output.wsbx"; | ||
} |
Oops, something went wrong.