refactor: simplify and speed up plan output formatting by removing name resolver dependency

This commit is contained in:
Pasha Sviderski committed 2026-03-19 13:14:09 +10:00
1 parent 95f80a7fda
commit e4cb71b878
13 files changed
+96 -150

No files matched your search

+2 -2
View File
@@ -20,10 +20,10 @@ func (o *SequenceOperation) Execute(ctx context.Context, cli Client) error {
return nil
}
func (o *SequenceOperation) Format(resolver NameResolver) string {
func (o *SequenceOperation) Format() string {
lines := make([]string, len(o.Operations))
for i, op := range o.Operations {
lines[i] = op.Format(resolver)
lines[i] = op.Format()
}
return strings.Join(lines, "\n")