Skip to content

Commit

Permalink
Update src/dotnet_mytool/Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
gitauto-ai[bot] authored Nov 18, 2024
1 parent 1828819 commit 813fe25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dotnet_mytool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ static void SetEnvironmentVariable(string variable, string value, string target)
Environment.SetEnvironmentVariable(variable, value, envTarget);
Console.WriteLine($"Environment variable {variable} set to {value} for {target}.");
}
{
{
Console.WriteLine("Invalid format. Use VAR_NAME=value.");
return;
}
}

rootCommand.AddCommand(setEnvCommand);

Expand Down

0 comments on commit 813fe25

Please sign in to comment.