Skip to content

Commit 7abae8e

Browse files
committed
Remove some console writes
1 parent 95a04f3 commit 7abae8e

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

src/dotnet/Cljr/Program.cs

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,6 @@ path Run a script from a file or resource
101101
https://clojure.org/reference/repl_and_main");
102102
}
103103

104-
static void PrintVersion()
105-
{
106-
Console.WriteLine($"ClojureCLR CLI Version: {Version}");
107-
}
108-
109-
110104
static void Warn(string message) => Console.Error.WriteLine(message);
111105

112106
//static void EndExecution(int exitCode, string message)
@@ -117,6 +111,11 @@ static void PrintVersion()
117111

118112
//static void EndExecution(int exitCode) => Environment.Exit(exitCode);
119113

114+
static void PrintVersion()
115+
{
116+
Console.WriteLine($"ClojureCLR CLI Version: {Version}");
117+
}
118+
120119
//static readonly string Version = typeof(Program).Assembly.GetName().Version!.ToString();
121120
private static string _version = string.Empty;
122121

@@ -143,8 +142,6 @@ static string Version
143142
}
144143
}
145144

146-
147-
148145
static bool IsNewerFile(string filename1, string filename2)
149146
{
150147
if (!File.Exists(filename1)) return false;
@@ -160,8 +157,6 @@ static string GetStringHash(string s)
160157
return BitConverter.ToString(hash);
161158
}
162159

163-
164-
165160
static int Main(string[] args)
166161
{
167162
var cliArgs = CommandLineParser.Parse(args);
@@ -454,7 +449,7 @@ static int Main(string[] args)
454449
{
455450
// & $JavaCmd -XX:-OmitStackTraceInFastThrow @JavaOpts @JvmCacheOpts @JvmOpts "-Dclojure.basis=$BasisFile" -classpath "$CP;$InstallDir/exec.jar" clojure.main -m clojure.run.exec @ClojureArgs
456451

457-
Console.WriteLine("Starting exec/tool");
452+
//Console.WriteLine("Starting exec/tool");
458453

459454
using Process process = new();
460455
SetInitialProcessParameters(process, installDir);
@@ -503,7 +498,7 @@ static int Main(string[] args)
503498
//process.Start();
504499
//process.WaitForExit();
505500

506-
Console.WriteLine("Starting main");
501+
//Console.WriteLine("Starting main");
507502

508503
using Process process = new();
509504
SetInitialProcessParameters(process, installDir);

src/dotnet/Cljr/Properties/launchSettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"profiles": {
33
"Cljr": {
44
"commandName": "Project",
5-
"commandLineArgs": "-Sforce -X:test:runner "
5+
"commandLineArgs": "-T:deps tree"
66
}
77
}
88
}

0 commit comments

Comments
 (0)