uttne / argstoclass Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Add a function to execute the command specified in the command line argument.
switch option cannot be specified
Add a function to map the arguments that could not be parsed to the Extra property of the command.
Supports options of type array.
It also supports IList type options.
Support class activation using DI.
Calling GetParameters by executing ArgsToClass.ArgsDataExtensions.GetExtensionMethodInfos on Linux causes an exception.
Microsoft (R) Test Execution Command Line Tool Version 16.3.0
Copyright (c) Microsoft Corporation. All rights reserved.
テスト実行を開始しています。お待ちください...
合計 1 個のテスト ファイルが指定されたパターンと一致しました。
X ArgsToClass.Tests.ArgsDataExtensionsTest.RunCommandTest [147ms]
エラー メッセージ:
System.IO.FileNotFoundException : Could not load file or assembly 'Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime'. The system cannot find the file specified.
スタック トレース:
at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
at System.Reflection.RuntimeMethodInfo.FetchNonReturnParameters()
at System.Reflection.RuntimeMethodInfo.GetParameters()
at ArgsToClass.ArgsDataExtensions.<>c__DisplayClass0_0.<GetExtensionMethodInfos>b__4(MethodInfo x) in /home/main/ArgsToClass/src/ArgsToClass/ArgsDataExtensions.cs:line 16
at System.Linq.Utilities.<>c__DisplayClass1_0`1.<CombinePredicates>b__0(TSource x)
at System.Linq.Enumerable.WhereEnumerableIterator`1.ToArray()
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at ArgsToClass.ArgsDataExtensions.GetExtensionMethodInfos(Type type) in /home/main/ArgsToClass/src/ArgsToClass/ArgsDataExtensions.cs:line 11
at ArgsToClass.ArgsDataExtensions.RunCommand(Object command) in /home/main/ArgsToClass/src/ArgsToClass/ArgsDataExtensions.cs:line 53
at ArgsToClass.Tests.ArgsDataExtensionsTest.RunCommandTest() in /home/main/ArgsToClass/src/ArgsToClass.Tests/ArgsDataExtensionsTest.cs:line 113
X ArgsToClass.Tests.ArgsDataExtensionsTest.GetExtensionMethodInfosTest [45ms]
エラー メッセージ:
System.IO.FileNotFoundException : Could not load file or assembly 'Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime'. The system cannot find the file specified.
スタック トレース:
at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
at System.Reflection.RuntimeMethodInfo.FetchNonReturnParameters()
at System.Reflection.RuntimeMethodInfo.GetParameters()
at ArgsToClass.ArgsDataExtensions.<>c__DisplayClass0_0.<GetExtensionMethodInfos>b__4(MethodInfo x) in /home/main/ArgsToClass/src/ArgsToClass/ArgsDataExtensions.cs:line 16
at System.Linq.Utilities.<>c__DisplayClass1_0`1.<CombinePredicates>b__0(TSource x)
at System.Linq.Enumerable.WhereEnumerableIterator`1.ToArray()
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at ArgsToClass.ArgsDataExtensions.GetExtensionMethodInfos(Type type) in /home/main/ArgsToClass/src/ArgsToClass/ArgsDataExtensions.cs:line 11
at ArgsToClass.Tests.ArgsDataExtensionsTest.GetExtensionMethodInfosTest() in /home/main/ArgsToClass/src/ArgsToClass.Tests/ArgsDataExtensionsTest.cs:line 97
Run the test using CircleCI.
Add the ability to easily create help text.
Select a class that may be disclosed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.