Skip to content

Commit

Permalink
Merge pull request #4 from dotnet-campus/t/lvyi/for-open-source
Browse files Browse the repository at this point in the history
准备发布第一个版本(正式版)
  • Loading branch information
lindexi authored Nov 11, 2019
2 parents 59a573a + 26098b8 commit 351e79f
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
dotnetCampus.Cli.CommandLine
dotnetCampus.Cli.CommandLine.As<T>() -> T
dotnetCampus.Cli.CommandLine.As<T>(dotnetCampus.Cli.ICommandLineOptionParser<T> parser) -> T
static dotnetCampus.Cli.CommandLine.Parse(string[] args, string protocolName = null) -> dotnetCampus.Cli.CommandLine
dotnetCampus.Cli.CommandLineAttribute
dotnetCampus.Cli.CommandLineHandlerBuilder
dotnetCampus.Cli.CommandLineHandlerBuilder.AddHandler<TVerb>(System.Action<TVerb> handler, dotnetCampus.Cli.ICommandLineOptionParser<TVerb> parser = null) -> dotnetCampus.Cli.CommandLineHandlerBuilder
dotnetCampus.Cli.CommandLineHandlerBuilder.AddHandler<TVerb>(System.Func<TVerb, int> handler, dotnetCampus.Cli.ICommandLineOptionParser<TVerb> parser = null) -> dotnetCampus.Cli.CommandLineHandlerBuilder
dotnetCampus.Cli.CommandLineHandlerBuilder.AddHandler<TVerb>(System.Func<TVerb, System.Threading.Tasks.Task> handler, dotnetCampus.Cli.ICommandLineOptionParser<TVerb> parser = null) -> dotnetCampus.Cli.CommandLineAsyncHandlerBuilder
dotnetCampus.Cli.CommandLineHandlerBuilder.AddHandler<TVerb>(System.Func<TVerb, System.Threading.Tasks.Task<int>> handler, dotnetCampus.Cli.ICommandLineOptionParser<TVerb> parser = null) -> dotnetCampus.Cli.CommandLineAsyncHandlerBuilder
dotnetCampus.Cli.CommandLineHandlerBuilder.Run() -> int
dotnetCampus.Cli.CommandLineAsyncHandlerBuilder
dotnetCampus.Cli.CommandLineAsyncHandlerBuilder.AddHandler<TVerb>(System.Action<TVerb> handler, dotnetCampus.Cli.ICommandLineOptionParser<TVerb> parser = null) -> dotnetCampus.Cli.CommandLineAsyncHandlerBuilder
dotnetCampus.Cli.CommandLineAsyncHandlerBuilder.AddHandler<TVerb>(System.Func<TVerb, int> handler, dotnetCampus.Cli.ICommandLineOptionParser<TVerb> parser = null) -> dotnetCampus.Cli.CommandLineAsyncHandlerBuilder
dotnetCampus.Cli.CommandLineAsyncHandlerBuilder.AddHandler<TVerb>(System.Func<TVerb, System.Threading.Tasks.Task> handler, dotnetCampus.Cli.ICommandLineOptionParser<TVerb> parser = null) -> dotnetCampus.Cli.CommandLineAsyncHandlerBuilder
dotnetCampus.Cli.CommandLineAsyncHandlerBuilder.AddHandler<TVerb>(System.Func<TVerb, System.Threading.Tasks.Task<int>> handler, dotnetCampus.Cli.ICommandLineOptionParser<TVerb> parser = null) -> dotnetCampus.Cli.CommandLineAsyncHandlerBuilder
dotnetCampus.Cli.CommandLineAsyncHandlerBuilder.RunAsync() -> System.Threading.Tasks.Task<int>
dotnetCampus.Cli.CommandLineHandlers
static dotnetCampus.Cli.CommandLineHandlers.AddHandler<TVerb>(this dotnetCampus.Cli.CommandLine commandLine, System.Action<TVerb> handler, dotnetCampus.Cli.ICommandLineOptionParser<TVerb> parser = null) -> dotnetCampus.Cli.CommandLineHandlerBuilder
static dotnetCampus.Cli.CommandLineHandlers.AddHandler<TVerb>(this dotnetCampus.Cli.CommandLine commandLine, System.Func<TVerb, int> handler, dotnetCampus.Cli.ICommandLineOptionParser<TVerb> parser = null) -> dotnetCampus.Cli.CommandLineHandlerBuilder
static dotnetCampus.Cli.CommandLineHandlers.AddHandler<TVerb>(this dotnetCampus.Cli.CommandLine commandLine, System.Func<TVerb, System.Threading.Tasks.Task> handler, dotnetCampus.Cli.ICommandLineOptionParser<TVerb> parser = null) -> dotnetCampus.Cli.CommandLineAsyncHandlerBuilder
static dotnetCampus.Cli.CommandLineHandlers.AddHandler<TVerb>(this dotnetCampus.Cli.CommandLine commandLine, System.Func<TVerb, System.Threading.Tasks.Task<int>> handler, dotnetCampus.Cli.ICommandLineOptionParser<TVerb> parser = null) -> dotnetCampus.Cli.CommandLineAsyncHandlerBuilder
dotnetCampus.Cli.CommandLineOptionParser<T>
dotnetCampus.Cli.CommandLineOptionParser<T>.CommandLineOptionParser() -> void
dotnetCampus.Cli.CommandLineOptionParser<T>.Verb.get -> string
dotnetCampus.Cli.CommandLineOptionParser<T>.Verb.set -> void
dotnetCampus.Cli.CommandLineOptionParser<T>.AddMatch(int index, System.Action<string> action) -> void
dotnetCampus.Cli.CommandLineOptionParser<T>.AddMatch(char shortName, System.Action<bool> action) -> void
dotnetCampus.Cli.CommandLineOptionParser<T>.AddMatch(char shortName, System.Action<string> action) -> void
dotnetCampus.Cli.CommandLineOptionParser<T>.AddMatch(char shortName, System.Action<System.Collections.Generic.IReadOnlyList<string>> action) -> void
dotnetCampus.Cli.CommandLineOptionParser<T>.AddMatch(string longName, System.Action<bool> action) -> void
dotnetCampus.Cli.CommandLineOptionParser<T>.AddMatch(string longName, System.Action<string> action) -> void
dotnetCampus.Cli.CommandLineOptionParser<T>.AddMatch(string longName, System.Action<System.Collections.Generic.IReadOnlyList<string>> action) -> void
dotnetCampus.Cli.CommandLineOptionParser<T>.AddMatch(char shortName, string longName, System.Action<bool> action) -> void
dotnetCampus.Cli.CommandLineOptionParser<T>.AddMatch(char shortName, string longName, System.Action<string> action) -> void
dotnetCampus.Cli.CommandLineOptionParser<T>.AddMatch(char shortName, string longName, System.Action<System.Collections.Generic.IReadOnlyList<string>> action) -> void
dotnetCampus.Cli.CommandLineOptionParser<T>.SetResult(System.Func<T> commit) -> void
dotnetCampus.Cli.ICommandLineOptionParser<T>
dotnetCampus.Cli.ICommandLineOptionParser<T>.Verb.get -> string
dotnetCampus.Cli.ICommandLineOptionParser<T>.SetValue(int index, string value) -> void
dotnetCampus.Cli.ICommandLineOptionParser<T>.SetValue(char shortName, bool value) -> void
dotnetCampus.Cli.ICommandLineOptionParser<T>.SetValue(char shortName, string value) -> void
dotnetCampus.Cli.ICommandLineOptionParser<T>.SetValue(char shortName, System.Collections.Generic.IReadOnlyList<string> values) -> void
dotnetCampus.Cli.ICommandLineOptionParser<T>.SetValue(string longName, bool value) -> void
dotnetCampus.Cli.ICommandLineOptionParser<T>.SetValue(string longName, string value) -> void
dotnetCampus.Cli.ICommandLineOptionParser<T>.SetValue(string longName, System.Collections.Generic.IReadOnlyList<string> values) -> void
dotnetCampus.Cli.ICommandLineOptionParser<T>.Commit() -> T
dotnetCampus.Cli.OptionAttribute
dotnetCampus.Cli.OptionAttribute.OptionAttribute(string longName) -> void
dotnetCampus.Cli.OptionAttribute.OptionAttribute(char shortName, string longName) -> void
dotnetCampus.Cli.OptionAttribute.ShortName.get -> char?
dotnetCampus.Cli.OptionAttribute.LongName.get -> string
dotnetCampus.Cli.ValueAttribute
dotnetCampus.Cli.ValueAttribute.ValueAttribute(int index) -> void
dotnetCampus.Cli.ValueAttribute.Index.get -> int
dotnetCampus.Cli.VerbAttribute
dotnetCampus.Cli.VerbAttribute.VerbAttribute(string verbName) -> void
dotnetCampus.Cli.VerbAttribute.VerbName.get -> string
Empty file.
3 changes: 2 additions & 1 deletion src/dotnetCampus.CommandLine/dotnetCampus.CommandLine.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net45;netcoreapp3.0</TargetFrameworks>
<RootNamespace>dotnetCampus.Cli</RootNamespace>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>walterlv</Authors>
Expand All @@ -10,6 +10,7 @@
<PackageProjectUrl>https://github.com/dotnet-campus/dotnetCampus.CommandLine</PackageProjectUrl>
<RepositoryUrl>https://github.com/dotnet-campus/dotnetCampus.CommandLine.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<Version>1.0.0</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 351e79f

Please sign in to comment.