diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-24 18:42:16 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-24 18:42:16 +0300 |
| commit | dfe36f2e29199b5a864ff02b0a6de0bd0f2010f4 (patch) | |
| tree | 6eb7f9db7ff4ee40d873c843a715336b3246a5ba | |
| parent | f3cfcb0a95c6ce1662f0cb2c4eae10b3bf37a7bd (diff) | |
fix(rpn): embed existing interfaces in VariableOpProvider and CommandOpProvider (task fk)
| -rw-r--r-- | internal/rpn/operations_interfaces.go | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/internal/rpn/operations_interfaces.go b/internal/rpn/operations_interfaces.go index 8ad80ed..e659644 100644 --- a/internal/rpn/operations_interfaces.go +++ b/internal/rpn/operations_interfaces.go @@ -132,17 +132,14 @@ type ( } // VariableOpProvider covers variable assignment and metric conversion. VariableOpProvider interface { - AssignRight(*Stack) error - AssignLeft(*Stack) error - Convert(*Stack) error + VariableOperator + MetricOperator } // CommandOpProvider covers command operators that return immediate results. CommandOpProvider interface { - Show(*Stack) (string, error) - ListVariables() (string, error) - ListConstants() (string, error) - ClearVariables() - ClearConstants() + StackOperator + VariableOperator + ConstantOperator } ) |
