forked from Metric/VCDiff
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from MatthiWare/CLI
Add CLI
- Loading branch information
Showing
23 changed files
with
282 additions
and
133 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using MatthiWare.CommandLine.Core.Attributes; | ||
|
||
namespace MatthiWare.Compression.VCDiff.Cli.Options | ||
{ | ||
public class CreateOptions | ||
{ | ||
[Required, Name("o", "old"), Description("Path to the old version of the file")] | ||
public string OldFile { get; set; } | ||
|
||
[Required, Name("n", "new"), Description("Path to the new version of the file")] | ||
public string NewFile { get; set; } | ||
|
||
[Required, Name("d", "delta"), Description("Output path of the delta patch file")] | ||
public string DeltaFile { get; set; } | ||
|
||
[Name("b", "buffer"), Description("Optional buffer size to use"), DefaultValue(1)] | ||
public int BufferSize { get; set; } | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using MatthiWare.CommandLine.Core.Attributes; | ||
|
||
namespace MatthiWare.Compression.VCDiff.Cli.Options | ||
{ | ||
public class PatchOptions | ||
{ | ||
[Required, Name("o", "old"), Description("Path to the old version of the file")] | ||
public string OldFile { get; set; } | ||
|
||
[Required, Name("n", "new"), Description("Output path of the patched file")] | ||
public string NewFile { get; set; } | ||
|
||
[Required, Name("d", "delta"), Description("Path of the delta patch file")] | ||
public string DeltaFile { get; set; } | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using MatthiWare.CommandLine.Core.Attributes; | ||
|
||
namespace MatthiWare.Compression.VCDiff.Cli.Options | ||
{ | ||
public class ProgramOptions | ||
{ | ||
[Required(false), Name("v", "verbose"), DefaultValue(false), Description("Verbose output")] | ||
public bool Verbose { get; set; } | ||
} | ||
} |
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,7 +1,8 @@ | ||
{ | ||
"profiles": { | ||
"VCDiff.Core.Cli": { | ||
"commandName": "Project" | ||
"commandName": "Project", | ||
"commandLineArgs": "create -o blob.bin -n blob_updated.bin -d delta" | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.