bump version with --start

This commit is contained in:
MasterGordon 2025-10-26 01:19:24 +02:00
parent efaf30a863
commit 1121a7b290
2 changed files with 12 additions and 1 deletions

View File

@ -244,6 +244,7 @@ function showHelp(): void {
Usage:
csharpierd <filename> < input.cs Format C# code from stdin
csharpierd --start Start and prewarm the server
csharpierd --status Show server status
csharpierd --stop Stop the background server
csharpierd --help Show this help message
@ -254,6 +255,9 @@ Description:
automatically shuts down after 1 hour of inactivity.
Examples:
# Start and prewarm the server
csharpierd --start
# Format a C# file
csharpierd Program.cs < Program.cs
@ -379,6 +383,13 @@ async function main() {
process.exit(0);
}
// Handle --start flag
if (arg === "--start") {
await ensureServer();
console.error("CSharpier server is ready");
process.exit(0);
}
// Normal formatting mode
const fileName = arg;
if (!fileName) {

View File

@ -1,6 +1,6 @@
{
"name": "csharpierd",
"version": "1.0.3",
"version": "1.0.4",
"description": "A persistent CSharpier formatting daemon with automatic server management and idle timeout",
"module": "index.ts",
"type": "module",