You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**No business logic in commands**: Commands parse input via `Settings`, then call the service method. Never put logic inside the `Execute` or `ExecuteAsync` method.
260
260
-**One file per type**: Each `.cs` file should contain only one class, record, struct, or enum.
261
261
-**Result pattern**: Return `OperationResult` / `OperationResult<T>` records — use `SuccessResult(...)` / `FailureResult(...)` factory methods
262
-
-**External processes**: Always `UseShellExecute = false`, capture stdout/stderr via redirect — never shell out to `cmd.exe` or `powershell.exe`
262
+
-**External processes**: Always `UseShellExecute = false`, capture stdout/stderr via redirect — never shell out to `cmd.exe` or `powershell.exe`. Pass arguments as `List<string>` (via `ProcessExecutionOptions.Arguments` or `ProcessStartInfo.ArgumentList`) — never as a single concatenated string and never via string interpolation (`$"..."`) to avoid command injection.
-**Unit test attributes**: Use `[TestMethod(DisplayName = "<short description>")]` and `[Description("<detailed description>")]` on all test methods
265
265
-**XML doc comments**: Required on all public members (enforced by `GenerateDocumentationFile true`)
@@ -285,14 +285,6 @@ O projeto usa o workflow **OpenSpec** para gerenciar features e mudanças:
285
285
-**`openspec/changes/`** — mudanças em andamento
286
286
-**`openspec/changes/archive/`** — mudanças implementadas e arquivadas
287
287
288
-
## Recent Changes
289
-
290
-
- migrate-cli-to-spectre-console-cli (2026-04-18): Migrated from `System.CommandLine` to `Spectre.Console.Cli` for better TUI support and cleaner command structure.
291
-
- secure-credential-storage (2026-04-13): Implemented `ICredentialService` for encrypted storage of database passwords.
292
-
- query-run-multi-server (2026-04-13): `query run` now supports executing scripts across multiple servers defined in settings.
0 commit comments