Improve testability, packaging, and docs

This commit is contained in:
Vibe Myass
2026-03-16 03:45:00 +00:00
parent 775bb7813d
commit 458494221e
12 changed files with 565 additions and 110 deletions

View File

@@ -0,0 +1,26 @@
namespace LibNftables;
internal interface INftContextHandle : System.IDisposable
{
bool DryRun { get; set; }
NftOptimizeFlags OptimizeFlags { get; set; }
NftInputFlags InputFlags { get; set; }
NftOutputFlags OutputFlags { get; set; }
NftDebugLevel DebugFlags { get; set; }
void BufferOutput();
void BufferError();
string? GetOutputBuffer();
string? GetErrorBuffer();
void RunCommand(string commandText);
void RunCommandFromFile(string path);
}