Skip to content

Commit e901498

Browse files
author
LoneWandererProductions
committed
Sync back lector
Fix apiexplore Improve Dataformater Comments
1 parent fd33799 commit e901498

22 files changed

Lines changed: 336 additions & 23 deletions

CoreBuilder/Development/ApiExplorerCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public sealed class ApiExplorerCommand : ICommand
4747
/// <summary>
4848
/// folder + optional outputMode
4949
/// </summary>
50-
public int ParameterCount => 2;
50+
public int ParameterCount => 1;
5151

5252
/// <summary>
5353
/// The output

CoreBuilder/Extensions/WhoAmIExtension.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ public sealed class WhoAmIExtension : ICommandExtension
3131
public string Namespace => "System";
3232

3333
/// <inheritdoc />
34-
public CommandResult Invoke(ICommand command, string[] args, Func<string[], CommandResult> executor)
34+
public CommandResult Invoke(ICommand command, string[] extensionArgs, Func<string[], CommandResult> executor, string[] commandArgs)
3535
{
36-
if (args.Length == 0)
36+
if (extensionArgs.Length == 0)
3737
{
3838
return CommandResult.Fail(
3939
"No parameter specified. Example: whoami().who(ip,hostname) or whoami().who(ip)");
@@ -57,7 +57,7 @@ public CommandResult Invoke(ICommand command, string[] args, Func<string[], Comm
5757
string ipsJoined = ips.Any() ? string.Join(", ", ips) : "None";
5858

5959
// Build a list of lines for requested fields
60-
var lines = args.Select(arg => arg.ToLowerInvariant())
60+
var lines = extensionArgs.Select(arg => arg.ToLowerInvariant())
6161
.Select(field =>
6262
{
6363
return field switch

DataFormatter/CsvColumnAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
33
* PROJECT: DataFormatter
4-
* FILE: DataFormatter/CsvColumnAttribute.cs
4+
* FILE: CsvColumnAttribute.cs
55
* PURPOSE: Helper for csv, Helps converter
66
* PROGRAMER: Peter Geinitz (Wayfarer)
77
*/

DataFormatter/CsvHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
33
* PROJECT: DataFormatter
4-
* FILE: DataFormatter/CsvHandler.cs
4+
* FILE: CsvHandler.cs
55
* PURPOSE: Simple Csv reader/writer
66
* PROGRAMER: Peter Geinitz (Wayfarer)
77
*/

DataFormatter/CsvHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
33
* PROJECT: DataFormatter
4-
* FILE: DataFormatter/CsvHelper.cs
4+
* FILE: CsvHelper.cs
55
* PURPOSE: Shared Helper functions that will be inlined anyways
66
* PROGRAMER: Peter Geinitz (Wayfarer)
77
*/

DataFormatter/DataFormatterResources.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
33
* PROJECT: DataFormatter
4-
* FILE: DataFormatter/DataFormatterResources.cs
4+
* FILE: DataFormatterResources.cs
55
* PURPOSE: Basic string Resources
66
* PROGRAMER: Peter Geinitz (Wayfarer)
77
*/

DataFormatter/DataHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
33
* PROJECT: DataFormatter
4-
* FILE: DataFormatter/DataHelper.cs
4+
* FILE: DataHelper.cs
55
* PURPOSE: Basic stuff shared over all operations
66
* PROGRAMER: Peter Geinitz (Wayfarer)
77
*/

DataFormatter/ObjFile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
33
* PROJECT: DataFormatter
4-
* FILE: DataFormatter/ObjFile.cs
4+
* FILE: ObjFile.cs
55
* PURPOSE: Basic Object for Blender File
66
* PROGRAMER: Peter Geinitz (Wayfarer)
77
* NOTE: Blender Files don't start counting at 0! So add +1 offset.

DataFormatter/ReadText.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
33
* PROJECT: DataFormatter
4-
* FILE: DataFormatter/ReadTxtFile.cs
4+
* FILE: ReadTxtFile.cs
55
* PURPOSE: Read txt Files
66
* PROGRAMER: Peter Geinitz (Wayfarer)
77
*/

DataFormatter/ReaderObj.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* COPYRIGHT: See COPYING in the top level directory
33
* PROJECT: DataFormatter
4-
* FILE: DataFormatter/ReaderObj.cs
4+
* FILE: ReaderObj.cs
55
* PURPOSE: A really basic obj File reader, does the basic stuff nothing more!
66
* PROGRAMER: Peter Geinitz (Wayfarer)
77
*/

0 commit comments

Comments
 (0)