GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — removed unneeded code · scriptcs/scriptcs@74e98ce

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/ScriptCs
    • Config.cs
    • ConfigMask.cs
    • ScriptCs.csproj
    • ScriptCsArgs.cs
  • test/ScriptCs.Tests
    • ScriptCsArgsTests.cs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/ScriptCs/Config.cs‎

Copy file name to clipboardExpand all lines: src/ScriptCs/Config.cs
-10Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,6 @@ public string[] Modules
5454

5555
public string Eval { get; set; }
5656

57-
public static Config Create(ScriptCsArgs commandArgs)
58-
{
59-
Guard.AgainstNullArgument("commandArgs", commandArgs);
60-
61-
return new Config()
62-
.Apply(ConfigMask.ReadGlobalOrDefault())
63-
.Apply(commandArgs.Config == null ? ConfigMask.ReadLocalOrDefault() : ConfigMask.Read(commandArgs.Config))
64-
.Apply(ConfigMask.Create(commandArgs));
65-
}
66-
6757
public static Config Create(string maskFile, ConfigMask configMask)
6858
{
6959
Guard.AgainstNullArgument("configMask", configMask);
Collapse file

‎src/ScriptCs/ConfigMask.cs‎

Copy file name to clipboardExpand all lines: src/ScriptCs/ConfigMask.cs
-24Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -39,30 +39,6 @@ public class ConfigMask
3939

4040
public bool? Watch { get; set; }
4141

42-
public static ConfigMask Create(ScriptCsArgs args)
43-
{
44-
Guard.AgainstNullArgument("args", args);
45-
46-
return new ConfigMask
47-
{
48-
AllowPreRelease = args.AllowPreRelease ? (bool?)true : null,
49-
Cache = args.Cache ? (bool?)true : null,
50-
Clean = args.Clean ? (bool?)true : null,
51-
Debug = args.Debug ? (bool?)true : null,
52-
Global = args.Global ? (bool?)true : null,
53-
Install = args.Install,
54-
LogLevel = args.LogLevel,
55-
Modules = args.Modules,
56-
Output = args.Output,
57-
PackageVersion = args.PackageVersion,
58-
Repl = args.Repl ? (bool?)true : null,
59-
Save = args.Save ? (bool?)true : null,
60-
ScriptName = args.ScriptName,
61-
Eval = args.Eval,
62-
Watch = args.Watch ? (bool?)true : null,
63-
};
64-
}
65-
6642
public static ConfigMask ReadGlobalOrDefault() => Read(new FileSystem().GlobalOptsFile, true);
6743

6844
public static ConfigMask ReadLocalOrDefault() => Read(Constants.ConfigFilename, true);
Collapse file

‎src/ScriptCs/ScriptCs.csproj‎

Copy file name to clipboardExpand all lines: src/ScriptCs/ScriptCs.csproj
-6Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,11 @@
1919
</ItemGroup>
2020
<ItemGroup>
2121
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.5" />
22-
<PackageReference Include="PowerArgs" Version="3.0.0" />
2322
</ItemGroup>
2423
<ItemGroup>
2524
<ProjectReference Include="..\ScriptCs.Contracts\ScriptCs.Contracts.csproj" />
2625
<ProjectReference Include="..\ScriptCs.Core\ScriptCs.Core.csproj" />
2726
<ProjectReference Include="..\ScriptCs.Engine.Roslyn\ScriptCs.Engine.Roslyn.csproj" />
2827
<ProjectReference Include="..\ScriptCs.Hosting\ScriptCs.Hosting.csproj" />
2928
</ItemGroup>
30-
<ItemGroup>
31-
<None Update="Properties\Settings.settings">
32-
<Generator>SettingsSingleFileGenerator</Generator>
33-
</None>
34-
</ItemGroup>
3529
</Project>
Collapse file

‎src/ScriptCs/ScriptCsArgs.cs‎

Copy file name to clipboardExpand all lines: src/ScriptCs/ScriptCsArgs.cs
-111Lines changed: 0 additions & 111 deletions
This file was deleted.
Collapse file

‎test/ScriptCs.Tests/ScriptCsArgsTests.cs‎

Copy file name to clipboardExpand all lines: test/ScriptCs.Tests/ScriptCsArgsTests.cs
-35Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.