-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
d78fd91
commit 76daa0a
Showing
5 changed files
with
43 additions
and
24 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,24 @@ | ||
using CommandLine; | ||
using CommandLine.Text; | ||
using System.Collections.Generic; | ||
|
||
namespace XrmCommandBox.Tools | ||
{ | ||
[Verb("solution-export", HelpText = "Export the specified solution to a .zip file")] | ||
[Verb("solution-export", HelpText = "Exports the specified solution to a .zip file")] | ||
[Handler(typeof(SolutionExportTool))] | ||
public class SolutionExportToolOptions : CrmCommonOptions | ||
{ | ||
[Option('s', "solution-name", Required = true, HelpText = "Unique name of the solution to export")] | ||
public string SolutionName { get; set; } | ||
|
||
[Usage(ApplicationAlias = "xrm")] | ||
public static IEnumerable<Example> Examples | ||
{ | ||
get | ||
{ | ||
yield return new Example("Export mysolution to the mysolution.zip file in the current directory", | ||
new SolutionExportToolOptions { ConnectionName = "TestEnvironment", SolutionName = "mysolution" }); | ||
} | ||
} | ||
} | ||
} |