diff --git a/.vs/ProjectSettings.json b/.vs/ProjectSettings.json new file mode 100644 index 0000000..f8b4888 --- /dev/null +++ b/.vs/ProjectSettings.json @@ -0,0 +1,3 @@ +{ + "CurrentProjectSetting": null +} \ No newline at end of file diff --git a/.vs/Replify.Net/DesignTimeBuild/.dtbcache b/.vs/Replify.Net/DesignTimeBuild/.dtbcache index b84b391..9d18763 100644 Binary files a/.vs/Replify.Net/DesignTimeBuild/.dtbcache and b/.vs/Replify.Net/DesignTimeBuild/.dtbcache differ diff --git a/.vs/Replify.Net/v15/.suo b/.vs/Replify.Net/v15/.suo index 730a9f4..f8a0f16 100644 Binary files a/.vs/Replify.Net/v15/.suo and b/.vs/Replify.Net/v15/.suo differ diff --git a/.vs/Replify.Net/v15/Server/sqlite3/storage.ide b/.vs/Replify.Net/v15/Server/sqlite3/storage.ide index 04d6aee..ac1811d 100644 Binary files a/.vs/Replify.Net/v15/Server/sqlite3/storage.ide and b/.vs/Replify.Net/v15/Server/sqlite3/storage.ide differ diff --git a/.vs/Replify.Net/v15/Server/sqlite3/storage.ide-shm b/.vs/Replify.Net/v15/Server/sqlite3/storage.ide-shm index 48309ac..e5dee33 100644 Binary files a/.vs/Replify.Net/v15/Server/sqlite3/storage.ide-shm and b/.vs/Replify.Net/v15/Server/sqlite3/storage.ide-shm differ diff --git a/.vs/Replify.Net/v15/Server/sqlite3/storage.ide-wal b/.vs/Replify.Net/v15/Server/sqlite3/storage.ide-wal index 1969b8a..40172bb 100644 Binary files a/.vs/Replify.Net/v15/Server/sqlite3/storage.ide-wal and b/.vs/Replify.Net/v15/Server/sqlite3/storage.ide-wal differ diff --git a/.vs/VSWorkspaceState.json b/.vs/VSWorkspaceState.json new file mode 100644 index 0000000..6b61141 --- /dev/null +++ b/.vs/VSWorkspaceState.json @@ -0,0 +1,6 @@ +{ + "ExpandedNodes": [ + "" + ], + "PreviewInSolutionExplorer": false +} \ No newline at end of file diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite new file mode 100644 index 0000000..9b06f9e Binary files /dev/null and b/.vs/slnx.sqlite differ diff --git a/Replify.Net.ConsoleTest/Commands/VersionCommand.cs b/Replify.Net.ConsoleTest/Commands/VersionCommand.cs index eea887b..81a6e38 100644 --- a/Replify.Net.ConsoleTest/Commands/VersionCommand.cs +++ b/Replify.Net.ConsoleTest/Commands/VersionCommand.cs @@ -5,13 +5,18 @@ namespace Replify.Net.ConsoleTest.Commands { - [Command("version")] + [Command("version", helpText: "This text is for the Version Command")] public class VersionCommand : BaseCommand { + + [Parameter("deneme", ShortKey = "d", HelpText = "Deneme Property'si")] + public int Deneme { get; set; } + + public override void Run(String param) { var version = Assembly.GetExecutingAssembly().ImageRuntimeVersion; ReplifyConsole.WriteLine(version); } - } + } } diff --git a/Replify.Net.ConsoleTest/Commands/ViewFileCommand.cs b/Replify.Net.ConsoleTest/Commands/ViewFileCommand.cs index 8d4a334..09d6f6b 100644 --- a/Replify.Net.ConsoleTest/Commands/ViewFileCommand.cs +++ b/Replify.Net.ConsoleTest/Commands/ViewFileCommand.cs @@ -4,14 +4,20 @@ namespace Replify.Net.ConsoleTest.Commands { - [Command("view")] + [Command("view", helpText: "This text is for the ViewFile Command")] public class ViewFileCommand : BaseCommand - { - [Parameter("line", ShortKey = "l")] + { + [Parameter("line", ShortKey = "l", HelpText = "Sayfaya ait gosterilecek satir sayisi")] public String LineCount { get; set; } + [Parameter("deneme", ShortKey = "d", HelpText = "Deneme Property'si")] + public int Deneme { get; set; } + + [Parameter("palamut", ShortKey = "p", HelpText = "Palamut Propertysi")] + public int Palamut { get; set; } + public override void Run(String fileName) - { + { Console.WriteLine("file command executed: " + fileName + " " + this.LineCount + " lines"); } } diff --git a/Replify.Net.ConsoleTest/bin/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.deps.json b/Replify.Net.ConsoleTest/bin/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.deps.json index 6b8ddb7..e633529 100644 --- a/Replify.Net.ConsoleTest/bin/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.deps.json +++ b/Replify.Net.ConsoleTest/bin/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.deps.json @@ -8,13 +8,13 @@ ".NETCoreApp,Version=v2.1": { "Replify.Net.ConsoleTest/1.0.0": { "dependencies": { - "Replify.Net": "1.3.0" + "Replify.Net": "1.3.1" }, "runtime": { "Replify.Net.ConsoleTest.dll": {} } }, - "Replify.Net/1.3.0": { + "Replify.Net/1.3.1": { "runtime": { "Replify.Net.dll": {} } @@ -27,7 +27,7 @@ "serviceable": false, "sha512": "" }, - "Replify.Net/1.3.0": { + "Replify.Net/1.3.1": { "type": "project", "serviceable": false, "sha512": "" diff --git a/Replify.Net.ConsoleTest/bin/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.dll b/Replify.Net.ConsoleTest/bin/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.dll index d51b669..40e5213 100644 Binary files a/Replify.Net.ConsoleTest/bin/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.dll and b/Replify.Net.ConsoleTest/bin/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.dll differ diff --git a/Replify.Net.ConsoleTest/bin/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.pdb b/Replify.Net.ConsoleTest/bin/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.pdb index 61e8359..7a1307f 100644 Binary files a/Replify.Net.ConsoleTest/bin/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.pdb and b/Replify.Net.ConsoleTest/bin/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.pdb differ diff --git a/Replify.Net.ConsoleTest/bin/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.runtimeconfig.dev.json b/Replify.Net.ConsoleTest/bin/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.runtimeconfig.dev.json index b8bb5c2..b9bdb7e 100644 --- a/Replify.Net.ConsoleTest/bin/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.runtimeconfig.dev.json +++ b/Replify.Net.ConsoleTest/bin/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.runtimeconfig.dev.json @@ -1,8 +1,8 @@ { "runtimeOptions": { "additionalProbingPaths": [ - "C:\\Users\\dtmebaran\\.dotnet\\store\\|arch|\\|tfm|", - "C:\\Users\\dtmebaran\\.nuget\\packages", + "C:\\Users\\dtshamzacebi\\.dotnet\\store\\|arch|\\|tfm|", + "C:\\Users\\dtshamzacebi\\.nuget\\packages", "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder" ] } diff --git a/Replify.Net.ConsoleTest/bin/Debug/netcoreapp2.1/Replify.Net.dll b/Replify.Net.ConsoleTest/bin/Debug/netcoreapp2.1/Replify.Net.dll index 88dac50..e70e865 100644 Binary files a/Replify.Net.ConsoleTest/bin/Debug/netcoreapp2.1/Replify.Net.dll and b/Replify.Net.ConsoleTest/bin/Debug/netcoreapp2.1/Replify.Net.dll differ diff --git a/Replify.Net.ConsoleTest/bin/Debug/netcoreapp2.1/Replify.Net.pdb b/Replify.Net.ConsoleTest/bin/Debug/netcoreapp2.1/Replify.Net.pdb index ba2a6f0..4a31ae2 100644 Binary files a/Replify.Net.ConsoleTest/bin/Debug/netcoreapp2.1/Replify.Net.pdb and b/Replify.Net.ConsoleTest/bin/Debug/netcoreapp2.1/Replify.Net.pdb differ diff --git a/Replify.Net.ConsoleTest/obj/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.assets.cache b/Replify.Net.ConsoleTest/obj/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.assets.cache index 28710b3..2395c87 100644 Binary files a/Replify.Net.ConsoleTest/obj/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.assets.cache and b/Replify.Net.ConsoleTest/obj/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.assets.cache differ diff --git a/Replify.Net.ConsoleTest/obj/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.csproj.CoreCompileInputs.cache b/Replify.Net.ConsoleTest/obj/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.csproj.CoreCompileInputs.cache index 90536e8..47727b3 100644 --- a/Replify.Net.ConsoleTest/obj/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.csproj.CoreCompileInputs.cache +++ b/Replify.Net.ConsoleTest/obj/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -f465cda7e8e1ddcfea0c92e3dd49c764cb7d915d +b493494d93689c2137c079e73b09643e1cfce25d diff --git a/Replify.Net.ConsoleTest/obj/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.csproj.FileListAbsolute.txt b/Replify.Net.ConsoleTest/obj/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.csproj.FileListAbsolute.txt index b60f81d..d332752 100644 --- a/Replify.Net.ConsoleTest/obj/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.csproj.FileListAbsolute.txt +++ b/Replify.Net.ConsoleTest/obj/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.csproj.FileListAbsolute.txt @@ -12,3 +12,17 @@ D:\src\digiturk\Replify.Net\Replify.Net.ConsoleTest\obj\Debug\netcoreapp2.1\Repl D:\src\digiturk\Replify.Net\Replify.Net.ConsoleTest\obj\Debug\netcoreapp2.1\Replify.Net.ConsoleTest.csproj.CopyComplete D:\src\digiturk\Replify.Net\Replify.Net.ConsoleTest\obj\Debug\netcoreapp2.1\Replify.Net.ConsoleTest.dll D:\src\digiturk\Replify.Net\Replify.Net.ConsoleTest\obj\Debug\netcoreapp2.1\Replify.Net.ConsoleTest.pdb +C:\Users\dtshamzacebi\Source\Repos\Hamzacebi\Replify.Net\Replify.Net.ConsoleTest\bin\Debug\netcoreapp2.1\Replify.Net.ConsoleTest.deps.json +C:\Users\dtshamzacebi\Source\Repos\Hamzacebi\Replify.Net\Replify.Net.ConsoleTest\bin\Debug\netcoreapp2.1\Replify.Net.ConsoleTest.runtimeconfig.json +C:\Users\dtshamzacebi\Source\Repos\Hamzacebi\Replify.Net\Replify.Net.ConsoleTest\bin\Debug\netcoreapp2.1\Replify.Net.ConsoleTest.runtimeconfig.dev.json +C:\Users\dtshamzacebi\Source\Repos\Hamzacebi\Replify.Net\Replify.Net.ConsoleTest\bin\Debug\netcoreapp2.1\Replify.Net.ConsoleTest.dll +C:\Users\dtshamzacebi\Source\Repos\Hamzacebi\Replify.Net\Replify.Net.ConsoleTest\bin\Debug\netcoreapp2.1\Replify.Net.ConsoleTest.pdb +C:\Users\dtshamzacebi\Source\Repos\Hamzacebi\Replify.Net\Replify.Net.ConsoleTest\bin\Debug\netcoreapp2.1\Replify.Net.dll +C:\Users\dtshamzacebi\Source\Repos\Hamzacebi\Replify.Net\Replify.Net.ConsoleTest\bin\Debug\netcoreapp2.1\Replify.Net.pdb +C:\Users\dtshamzacebi\Source\Repos\Hamzacebi\Replify.Net\Replify.Net.ConsoleTest\obj\Debug\netcoreapp2.1\Replify.Net.ConsoleTest.csprojAssemblyReference.cache +C:\Users\dtshamzacebi\Source\Repos\Hamzacebi\Replify.Net\Replify.Net.ConsoleTest\obj\Debug\netcoreapp2.1\Replify.Net.ConsoleTest.csproj.CoreCompileInputs.cache +C:\Users\dtshamzacebi\Source\Repos\Hamzacebi\Replify.Net\Replify.Net.ConsoleTest\obj\Debug\netcoreapp2.1\Replify.Net.ConsoleTest.AssemblyInfoInputs.cache +C:\Users\dtshamzacebi\Source\Repos\Hamzacebi\Replify.Net\Replify.Net.ConsoleTest\obj\Debug\netcoreapp2.1\Replify.Net.ConsoleTest.AssemblyInfo.cs +C:\Users\dtshamzacebi\Source\Repos\Hamzacebi\Replify.Net\Replify.Net.ConsoleTest\obj\Debug\netcoreapp2.1\Replify.Net.ConsoleTest.csproj.CopyComplete +C:\Users\dtshamzacebi\Source\Repos\Hamzacebi\Replify.Net\Replify.Net.ConsoleTest\obj\Debug\netcoreapp2.1\Replify.Net.ConsoleTest.dll +C:\Users\dtshamzacebi\Source\Repos\Hamzacebi\Replify.Net\Replify.Net.ConsoleTest\obj\Debug\netcoreapp2.1\Replify.Net.ConsoleTest.pdb diff --git a/Replify.Net.ConsoleTest/obj/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.csprojAssemblyReference.cache b/Replify.Net.ConsoleTest/obj/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.csprojAssemblyReference.cache index 6db00ab..e3e1279 100644 Binary files a/Replify.Net.ConsoleTest/obj/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.csprojAssemblyReference.cache and b/Replify.Net.ConsoleTest/obj/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.csprojAssemblyReference.cache differ diff --git a/Replify.Net.ConsoleTest/obj/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.dll b/Replify.Net.ConsoleTest/obj/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.dll index d51b669..40e5213 100644 Binary files a/Replify.Net.ConsoleTest/obj/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.dll and b/Replify.Net.ConsoleTest/obj/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.dll differ diff --git a/Replify.Net.ConsoleTest/obj/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.pdb b/Replify.Net.ConsoleTest/obj/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.pdb index 61e8359..7a1307f 100644 Binary files a/Replify.Net.ConsoleTest/obj/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.pdb and b/Replify.Net.ConsoleTest/obj/Debug/netcoreapp2.1/Replify.Net.ConsoleTest.pdb differ diff --git a/Replify.Net.ConsoleTest/obj/Release/netcoreapp2.1/Replify.Net.ConsoleTest.AssemblyInfo.cs b/Replify.Net.ConsoleTest/obj/Release/netcoreapp2.1/Replify.Net.ConsoleTest.AssemblyInfo.cs new file mode 100644 index 0000000..045b6cc --- /dev/null +++ b/Replify.Net.ConsoleTest/obj/Release/netcoreapp2.1/Replify.Net.ConsoleTest.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Replify.Net.ConsoleTest")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("Replify.Net.ConsoleTest")] +[assembly: System.Reflection.AssemblyTitleAttribute("Replify.Net.ConsoleTest")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/Replify.Net.ConsoleTest/obj/Release/netcoreapp2.1/Replify.Net.ConsoleTest.AssemblyInfoInputs.cache b/Replify.Net.ConsoleTest/obj/Release/netcoreapp2.1/Replify.Net.ConsoleTest.AssemblyInfoInputs.cache new file mode 100644 index 0000000..5511b0d --- /dev/null +++ b/Replify.Net.ConsoleTest/obj/Release/netcoreapp2.1/Replify.Net.ConsoleTest.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +e5d21af54f2424b64f32007d00879d4cd4d7f443 diff --git a/Replify.Net.ConsoleTest/obj/Release/netcoreapp2.1/Replify.Net.ConsoleTest.csproj.CoreCompileInputs.cache b/Replify.Net.ConsoleTest/obj/Release/netcoreapp2.1/Replify.Net.ConsoleTest.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..559af75 --- /dev/null +++ b/Replify.Net.ConsoleTest/obj/Release/netcoreapp2.1/Replify.Net.ConsoleTest.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +e419803dff1616cbd7c145cd9c2c1667c7c61505 diff --git a/Replify.Net.ConsoleTest/obj/Replify.Net.ConsoleTest.csproj.nuget.cache b/Replify.Net.ConsoleTest/obj/Replify.Net.ConsoleTest.csproj.nuget.cache index 652e19e..6aaae57 100644 --- a/Replify.Net.ConsoleTest/obj/Replify.Net.ConsoleTest.csproj.nuget.cache +++ b/Replify.Net.ConsoleTest/obj/Replify.Net.ConsoleTest.csproj.nuget.cache @@ -1,5 +1,5 @@ { "version": 1, - "dgSpecHash": "M77zwiVtut6E7X5+DzGRdZVy8pN0c3uv0tWi7CsxCSWDr1c1k4NbnFnwsoE31oDEqpr/009rU8K/FnyBOVDHDw==", + "dgSpecHash": "1u7PvcVnRXtT+F9A09t8/f3PasXh+WgtegqtBzD4yGzMKBDp7Zbl896xDmQG9Xo8m4jm2GBeiH7k6dlDPStMtw==", "success": true } \ No newline at end of file diff --git a/Replify.Net.ConsoleTest/obj/Replify.Net.ConsoleTest.csproj.nuget.g.props b/Replify.Net.ConsoleTest/obj/Replify.Net.ConsoleTest.csproj.nuget.g.props index 21e17e7..7f10d3c 100644 --- a/Replify.Net.ConsoleTest/obj/Replify.Net.ConsoleTest.csproj.nuget.g.props +++ b/Replify.Net.ConsoleTest/obj/Replify.Net.ConsoleTest.csproj.nuget.g.props @@ -3,9 +3,9 @@ True NuGet - D:\src\digiturk\Replify.Net\Replify.Net.ConsoleTest\obj\project.assets.json + C:\Users\dtshamzacebi\Source\Repos\Hamzacebi\Replify.Net\Replify.Net.ConsoleTest\obj\project.assets.json $(UserProfile)\.nuget\packages\ - C:\Users\dtmebaran\.nuget\packages\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder + C:\Users\dtshamzacebi\.nuget\packages\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder PackageReference 4.9.3 diff --git a/Replify.Net.ConsoleTest/obj/project.assets.json b/Replify.Net.ConsoleTest/obj/project.assets.json index cc64f11..572a713 100644 --- a/Replify.Net.ConsoleTest/obj/project.assets.json +++ b/Replify.Net.ConsoleTest/obj/project.assets.json @@ -704,23 +704,23 @@ ] }, "packageFolders": { - "C:\\Users\\dtmebaran\\.nuget\\packages\\": {}, + "C:\\Users\\dtshamzacebi\\.nuget\\packages\\": {}, "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder": {} }, "project": { "version": "1.0.0", "restore": { - "projectUniqueName": "D:\\src\\digiturk\\Replify.Net\\Replify.Net.ConsoleTest\\Replify.Net.ConsoleTest.csproj", + "projectUniqueName": "C:\\Users\\dtshamzacebi\\Source\\Repos\\Hamzacebi\\Replify.Net\\Replify.Net.ConsoleTest\\Replify.Net.ConsoleTest.csproj", "projectName": "Replify.Net.ConsoleTest", - "projectPath": "D:\\src\\digiturk\\Replify.Net\\Replify.Net.ConsoleTest\\Replify.Net.ConsoleTest.csproj", - "packagesPath": "C:\\Users\\dtmebaran\\.nuget\\packages\\", - "outputPath": "D:\\src\\digiturk\\Replify.Net\\Replify.Net.ConsoleTest\\obj\\", + "projectPath": "C:\\Users\\dtshamzacebi\\Source\\Repos\\Hamzacebi\\Replify.Net\\Replify.Net.ConsoleTest\\Replify.Net.ConsoleTest.csproj", + "packagesPath": "C:\\Users\\dtshamzacebi\\.nuget\\packages\\", + "outputPath": "C:\\Users\\dtshamzacebi\\Source\\Repos\\Hamzacebi\\Replify.Net\\Replify.Net.ConsoleTest\\obj\\", "projectStyle": "PackageReference", "fallbackFolders": [ "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder" ], "configFilePaths": [ - "C:\\Users\\dtmebaran\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Users\\dtshamzacebi\\AppData\\Roaming\\NuGet\\NuGet.Config", "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" ], "originalTargetFrameworks": [ @@ -728,13 +728,14 @@ ], "sources": { "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "http://dtl1tfsbuild2:8081/repository/digiturk-nuget": {}, "https://api.nuget.org/v3/index.json": {} }, "frameworks": { "netcoreapp2.1": { "projectReferences": { - "D:\\src\\digiturk\\Replify.Net\\Replify.Net\\Replify.Net.csproj": { - "projectPath": "D:\\src\\digiturk\\Replify.Net\\Replify.Net\\Replify.Net.csproj" + "C:\\Users\\dtshamzacebi\\Source\\Repos\\Hamzacebi\\Replify.Net\\Replify.Net\\Replify.Net.csproj": { + "projectPath": "C:\\Users\\dtshamzacebi\\Source\\Repos\\Hamzacebi\\Replify.Net\\Replify.Net\\Replify.Net.csproj" } } } @@ -749,6 +750,7 @@ "netcoreapp2.1": { "dependencies": { "Microsoft.NETCore.App": { + "suppressParent": "All", "target": "Package", "version": "[2.1.0, )", "autoReferenced": true diff --git a/Replify.Net/BaseCommand.cs b/Replify.Net/BaseCommand.cs index c35adf3..148c466 100644 --- a/Replify.Net/BaseCommand.cs +++ b/Replify.Net/BaseCommand.cs @@ -1,11 +1,35 @@ using System; using System.Collections.Generic; using System.Text; +using System.Reflection; namespace Replify.Net { + using Extensions; public abstract class BaseCommand { abstract public void Run(String param = ""); - } + + [Parameter(key: "help", ShortKey = "h")] + public virtual String Help { set { this.WriteAllSubCommandForACommand(); } } + + protected void WriteAllSubCommandForACommand() + { + var commandType = this.GetType(); + this.WriteAllSubCommands(properties: commandType.GetProperties()); + } + + protected void WriteAllSubCommands(PropertyInfo[] properties) + { + foreach (var property in properties) + { + if (property.Name == "Help") continue; + + var getPropertyAttributes = property.GetAttribute(); + if (getPropertyAttributes == null) continue; + + ConsoleExtensions.WriteLineInfo($"--{getPropertyAttributes.Key}\t\t--{getPropertyAttributes.ShortKey}\t\t{(getPropertyAttributes.Required == true ? "is required" : "is optional") }\t\t{getPropertyAttributes.HelpText}"); + } + } + } } diff --git a/Replify.Net/CommandAttribute.cs b/Replify.Net/CommandAttribute.cs index 9cf420a..214cd5d 100644 --- a/Replify.Net/CommandAttribute.cs +++ b/Replify.Net/CommandAttribute.cs @@ -7,11 +7,13 @@ namespace Replify.Net [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] public class CommandAttribute : Attribute { - public CommandAttribute(String command) + public CommandAttribute(String command, String helpText = default(string)) { this.Command = command; + this.HelpText = helpText; } + public String Command { get; set; } - public String Command { get; set; } + public String HelpText { get; set; } = string.Empty; } } diff --git a/Replify.Net/Commands/ExitCommand.cs b/Replify.Net/Commands/ExitCommand.cs index 2b02811..da1355d 100644 --- a/Replify.Net/Commands/ExitCommand.cs +++ b/Replify.Net/Commands/ExitCommand.cs @@ -10,5 +10,5 @@ public class ExitCommand : BaseCommand public override void Run(String name) { } - } + } } diff --git a/Replify.Net/Commands/HelpCommand.cs b/Replify.Net/Commands/HelpCommand.cs new file mode 100644 index 0000000..a96fae3 --- /dev/null +++ b/Replify.Net/Commands/HelpCommand.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Replify.Net.Commands +{ + using Extensions; + + [Command(command: "help")] + public class HelpCommand : BaseCommand + { + public override void Run(string param = "") + { + var allCommands = Replify.AllCommands(); + foreach (var command in allCommands) + { + var getCommandAttributes = command.Value.GetAttribute(); + ConsoleExtensions.WriteLineInfo($"{command.Key}\t\t{getCommandAttributes.HelpText}"); + ConsoleExtensions.WriteLineInfo(value: "------------------------------------------"); + this.WriteAllSubCommands(command.Value.GetProperties()); + ConsoleExtensions.WriteLineInfo(value: "=========================================="); + } + } + + + + } +} diff --git a/Replify.Net/Extensions/ConsoleExtensions.cs b/Replify.Net/Extensions/ConsoleExtensions.cs new file mode 100644 index 0000000..b3805d2 --- /dev/null +++ b/Replify.Net/Extensions/ConsoleExtensions.cs @@ -0,0 +1,116 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Replify.Net.Extensions +{ + /// + /// Console ekrani icin yazilan ozel fonksiyonlarin oldugu class + /// + public static class ConsoleExtensions + { + #region Console.WriteLine Functions + + /// + /// Istenilen renge gore Console'de yazdirilmak istenilen yazinin yazdirilip alt satira gecmesini saglayan fonksiyon + /// + /// Console'de yazilacak olan icerik + /// Yazinin yazilmasi istenilen renk parametresi + public static void WriteLine(string value, ConsoleColor textColor = ConsoleColor.White) + { + Console.ForegroundColor = textColor; + Console.WriteLine(value: value); + Console.ResetColor(); + } + + /// + /// Hata mesajlari icin Console'de Red olarak yazi yazdirir + /// + /// Console'de yazilacak olan icerik + public static void WriteLineError(string value) + { + WriteLine(value, ConsoleColor.Red); + } + + /// + /// Basari mesajlari icin Console'de Green olarak yazi yazdirir + /// + /// Console'de yazilacak olan icerik + public static void WriteLineSuccess(string value) + { + WriteLine(value, ConsoleColor.Green); + } + + /// + /// Uyari mesajlari icin Console'de Yellow olarak yazi yazdirir + /// + /// Console'de yazilacak olan icerik + public static void WriteLineWarning(string value) + { + WriteLine(value, ConsoleColor.Yellow); + } + + /// + /// Bilgilendirme mesajlari icin Console'de Cyan olarak yazi yazdirir + /// + /// Console'de yazilacak olan icerik + public static void WriteLineInfo(string value) + { + WriteLine(value, ConsoleColor.Cyan); + } + + #endregion + + #region Console.Write Functions + + /// + /// Istenilen renge gore Console'de yazdirilmak istenilen yazinin yazilmasini saglayan fonksiyon + /// + /// Console'de yazilacak olan icerik + /// Yazinin yazilmasi istenilen renk parametresi + public static void Write(string value, ConsoleColor textColor = ConsoleColor.White) + { + Console.ForegroundColor = textColor; + Console.Write(value: value); + Console.ResetColor(); + } + + /// + /// Hata mesajlari icin Console'de Red olarak yazi yazdirir + /// + /// Console'de yazilacak olan icerik + public static void WriteError(string value) + { + Write(value, ConsoleColor.Red); + } + + /// + /// Basari mesajlari icin Console'de Green olarak yazi yazdirir + /// + /// Console'de yazilacak olan icerik + public static void WriteSuccess(string value) + { + Write(value, ConsoleColor.Green); + } + + /// + /// Uyari mesajlari icin Console'de Yellow olarak yazi yazdirir + /// + /// Console'de yazilacak olan icerik + public static void WriteWarning(string value) + { + Write(value, ConsoleColor.Yellow); + } + + /// + /// Bilgilendirme mesajlari icin Console'de Cyan olarak yazi yazdirir + /// + /// Console'de yazilacak olan icerik + public static void WriteInfo(string value) + { + Write(value, ConsoleColor.Cyan); + } + + #endregion + } +} \ No newline at end of file diff --git a/Replify.Net/Replify.cs b/Replify.Net/Replify.cs index de69ecc..3149af3 100644 --- a/Replify.Net/Replify.cs +++ b/Replify.Net/Replify.cs @@ -10,7 +10,7 @@ namespace Replify.Net public static class Replify { private static Dictionary _Commands = new Dictionary(); - + public static void Register(String key = "") where CommandType : BaseCommand { var commandType = typeof(CommandType); @@ -49,9 +49,9 @@ public static void RegisterAssembly(String assemblyName) public static void RegisterAssembly(Assembly assembly) { var types = assembly.GetTypes(); - foreach(var type in types) + foreach (var type in types) { - if(type.IsSubclassOf(typeof(BaseCommand))) + if (type.IsSubclassOf(typeof(BaseCommand))) { Register(type); } @@ -60,7 +60,7 @@ public static void RegisterAssembly(Assembly assembly) public static void Start() { - while(true) + while (true) { try { @@ -119,11 +119,28 @@ public static void Start() command.Run(parameterSet.DefaultParameter); } } - catch(Exception ex) + catch (Exception ex) { Console.WriteLine("An exception occurred when executing command: " + ex.Message); } } } + + /// + /// CLI icerisinde olan tum Command'lara ulasilabilen fonksiyon + /// + /// + internal static Dictionary AllCommands() + { + Dictionary publicCommands = new Dictionary(); + + foreach (var singleCommand in _Commands) + if (singleCommand.Key != "help" && singleCommand.Key != "exit") + publicCommands.Add(key: singleCommand.Key, value: singleCommand.Value); + + return publicCommands; + } + + } } diff --git a/Replify.Net/bin/Debug/netstandard2.0/Replify.Net.dll b/Replify.Net/bin/Debug/netstandard2.0/Replify.Net.dll index c0206a3..e70e865 100644 Binary files a/Replify.Net/bin/Debug/netstandard2.0/Replify.Net.dll and b/Replify.Net/bin/Debug/netstandard2.0/Replify.Net.dll differ diff --git a/Replify.Net/bin/Debug/netstandard2.0/Replify.Net.pdb b/Replify.Net/bin/Debug/netstandard2.0/Replify.Net.pdb index 51d1b04..4a31ae2 100644 Binary files a/Replify.Net/bin/Debug/netstandard2.0/Replify.Net.pdb and b/Replify.Net/bin/Debug/netstandard2.0/Replify.Net.pdb differ diff --git a/Replify.Net/obj/Debug/netstandard2.0/Replify.Net.assets.cache b/Replify.Net/obj/Debug/netstandard2.0/Replify.Net.assets.cache index bdfb062..db73529 100644 Binary files a/Replify.Net/obj/Debug/netstandard2.0/Replify.Net.assets.cache and b/Replify.Net/obj/Debug/netstandard2.0/Replify.Net.assets.cache differ diff --git a/Replify.Net/obj/Debug/netstandard2.0/Replify.Net.csproj.CoreCompileInputs.cache b/Replify.Net/obj/Debug/netstandard2.0/Replify.Net.csproj.CoreCompileInputs.cache index 69b61c3..5d4c174 100644 --- a/Replify.Net/obj/Debug/netstandard2.0/Replify.Net.csproj.CoreCompileInputs.cache +++ b/Replify.Net/obj/Debug/netstandard2.0/Replify.Net.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -26eb9d5cd4cb1d78813b81abf990bbc12f0b7689 +207098d243f7b6eb77dce5d0d035bb71ec4073ce diff --git a/Replify.Net/obj/Debug/netstandard2.0/Replify.Net.csproj.FileListAbsolute.txt b/Replify.Net/obj/Debug/netstandard2.0/Replify.Net.csproj.FileListAbsolute.txt index dab6ccf..af8090c 100644 --- a/Replify.Net/obj/Debug/netstandard2.0/Replify.Net.csproj.FileListAbsolute.txt +++ b/Replify.Net/obj/Debug/netstandard2.0/Replify.Net.csproj.FileListAbsolute.txt @@ -7,3 +7,11 @@ D:\src\digiturk\Replify.Net\Replify.Net\obj\Debug\netstandard2.0\Replify.Net.Ass D:\src\digiturk\Replify.Net\Replify.Net\obj\Debug\netstandard2.0\Replify.Net.dll D:\src\digiturk\Replify.Net\Replify.Net\obj\Debug\netstandard2.0\Replify.Net.pdb D:\src\digiturk\Replify.Net\Replify.Net\obj\Debug\netstandard2.0\Replify.Net.csprojAssemblyReference.cache +C:\Users\dtshamzacebi\Source\Repos\Hamzacebi\Replify.Net\Replify.Net\bin\Debug\netstandard2.0\Replify.Net.deps.json +C:\Users\dtshamzacebi\Source\Repos\Hamzacebi\Replify.Net\Replify.Net\bin\Debug\netstandard2.0\Replify.Net.dll +C:\Users\dtshamzacebi\Source\Repos\Hamzacebi\Replify.Net\Replify.Net\bin\Debug\netstandard2.0\Replify.Net.pdb +C:\Users\dtshamzacebi\Source\Repos\Hamzacebi\Replify.Net\Replify.Net\obj\Debug\netstandard2.0\Replify.Net.csproj.CoreCompileInputs.cache +C:\Users\dtshamzacebi\Source\Repos\Hamzacebi\Replify.Net\Replify.Net\obj\Debug\netstandard2.0\Replify.Net.AssemblyInfoInputs.cache +C:\Users\dtshamzacebi\Source\Repos\Hamzacebi\Replify.Net\Replify.Net\obj\Debug\netstandard2.0\Replify.Net.AssemblyInfo.cs +C:\Users\dtshamzacebi\Source\Repos\Hamzacebi\Replify.Net\Replify.Net\obj\Debug\netstandard2.0\Replify.Net.dll +C:\Users\dtshamzacebi\Source\Repos\Hamzacebi\Replify.Net\Replify.Net\obj\Debug\netstandard2.0\Replify.Net.pdb diff --git a/Replify.Net/obj/Debug/netstandard2.0/Replify.Net.csprojAssemblyReference.cache b/Replify.Net/obj/Debug/netstandard2.0/Replify.Net.csprojAssemblyReference.cache deleted file mode 100644 index 9126a32..0000000 Binary files a/Replify.Net/obj/Debug/netstandard2.0/Replify.Net.csprojAssemblyReference.cache and /dev/null differ diff --git a/Replify.Net/obj/Debug/netstandard2.0/Replify.Net.dll b/Replify.Net/obj/Debug/netstandard2.0/Replify.Net.dll index c0206a3..e70e865 100644 Binary files a/Replify.Net/obj/Debug/netstandard2.0/Replify.Net.dll and b/Replify.Net/obj/Debug/netstandard2.0/Replify.Net.dll differ diff --git a/Replify.Net/obj/Debug/netstandard2.0/Replify.Net.pdb b/Replify.Net/obj/Debug/netstandard2.0/Replify.Net.pdb index 51d1b04..4a31ae2 100644 Binary files a/Replify.Net/obj/Debug/netstandard2.0/Replify.Net.pdb and b/Replify.Net/obj/Debug/netstandard2.0/Replify.Net.pdb differ diff --git a/Replify.Net/obj/Release/netstandard2.0/Replify.Net.AssemblyInfo.cs b/Replify.Net/obj/Release/netstandard2.0/Replify.Net.AssemblyInfo.cs new file mode 100644 index 0000000..f6ac6de --- /dev/null +++ b/Replify.Net/obj/Release/netstandard2.0/Replify.Net.AssemblyInfo.cs @@ -0,0 +1,25 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("digiturk")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")] +[assembly: System.Reflection.AssemblyDescriptionAttribute("A library that makes easier to build repl tools that is based on .Net or .Net Cor" + + "e")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.3.1.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.3.1")] +[assembly: System.Reflection.AssemblyProductAttribute("Replify.Net")] +[assembly: System.Reflection.AssemblyTitleAttribute("Replify.Net")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.3.1.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/Replify.Net/obj/Release/netstandard2.0/Replify.Net.AssemblyInfoInputs.cache b/Replify.Net/obj/Release/netstandard2.0/Replify.Net.AssemblyInfoInputs.cache new file mode 100644 index 0000000..bddae16 --- /dev/null +++ b/Replify.Net/obj/Release/netstandard2.0/Replify.Net.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +1249e5554b2b725dc3cc4bd793b925bc06f926a9 diff --git a/Replify.Net/obj/Release/netstandard2.0/Replify.Net.csproj.CoreCompileInputs.cache b/Replify.Net/obj/Release/netstandard2.0/Replify.Net.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..80fe060 --- /dev/null +++ b/Replify.Net/obj/Release/netstandard2.0/Replify.Net.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +fda69c89474c7dd997be46711e2b97b77f660daf diff --git a/Replify.Net/obj/Replify.Net.csproj.nuget.cache b/Replify.Net/obj/Replify.Net.csproj.nuget.cache index a8b83a5..392779b 100644 --- a/Replify.Net/obj/Replify.Net.csproj.nuget.cache +++ b/Replify.Net/obj/Replify.Net.csproj.nuget.cache @@ -1,5 +1,5 @@ { "version": 1, - "dgSpecHash": "aX0v2PW9AQP2Jqm0YxXuU2wZws79+KaYdT0l0VX+BL6rmMi9CdcduCh0odHoZxWCDmGjn+92o3Gn8F70LVrPRg==", + "dgSpecHash": "ao/e8eft9YsCoBYYvHAkcj/RQUT4K/1A553NIbkhNruQz2D9iOZSfCtCTkY93sKLvW9VtjxtSTtt4gGjFyUNdQ==", "success": true } \ No newline at end of file diff --git a/Replify.Net/obj/Replify.Net.csproj.nuget.g.props b/Replify.Net/obj/Replify.Net.csproj.nuget.g.props index 5abb2ee..9429f73 100644 --- a/Replify.Net/obj/Replify.Net.csproj.nuget.g.props +++ b/Replify.Net/obj/Replify.Net.csproj.nuget.g.props @@ -3,9 +3,9 @@ True NuGet - D:\src\digiturk\Replify.Net\Replify.Net\obj\project.assets.json + C:\Users\dtshamzacebi\Source\Repos\Hamzacebi\Replify.Net\Replify.Net\obj\project.assets.json $(UserProfile)\.nuget\packages\ - C:\Users\dtmebaran\.nuget\packages\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder + C:\Users\dtshamzacebi\.nuget\packages\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder PackageReference 4.9.3 diff --git a/Replify.Net/obj/project.assets.json b/Replify.Net/obj/project.assets.json index ae568e0..7023fa7 100644 --- a/Replify.Net/obj/project.assets.json +++ b/Replify.Net/obj/project.assets.json @@ -179,23 +179,23 @@ ] }, "packageFolders": { - "C:\\Users\\dtmebaran\\.nuget\\packages\\": {}, + "C:\\Users\\dtshamzacebi\\.nuget\\packages\\": {}, "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder": {} }, "project": { "version": "1.3.1", "restore": { - "projectUniqueName": "D:\\src\\digiturk\\Replify.Net\\Replify.Net\\Replify.Net.csproj", + "projectUniqueName": "C:\\Users\\dtshamzacebi\\Source\\Repos\\Hamzacebi\\Replify.Net\\Replify.Net\\Replify.Net.csproj", "projectName": "Replify.Net", - "projectPath": "D:\\src\\digiturk\\Replify.Net\\Replify.Net\\Replify.Net.csproj", - "packagesPath": "C:\\Users\\dtmebaran\\.nuget\\packages\\", - "outputPath": "D:\\src\\digiturk\\Replify.Net\\Replify.Net\\obj\\", + "projectPath": "C:\\Users\\dtshamzacebi\\Source\\Repos\\Hamzacebi\\Replify.Net\\Replify.Net\\Replify.Net.csproj", + "packagesPath": "C:\\Users\\dtshamzacebi\\.nuget\\packages\\", + "outputPath": "C:\\Users\\dtshamzacebi\\Source\\Repos\\Hamzacebi\\Replify.Net\\Replify.Net\\obj\\", "projectStyle": "PackageReference", "fallbackFolders": [ "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder" ], "configFilePaths": [ - "C:\\Users\\dtmebaran\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Users\\dtshamzacebi\\AppData\\Roaming\\NuGet\\NuGet.Config", "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" ], "originalTargetFrameworks": [ @@ -203,6 +203,7 @@ ], "sources": { "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "http://dtl1tfsbuild2:8081/repository/digiturk-nuget": {}, "https://api.nuget.org/v3/index.json": {} }, "frameworks": {