mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 21:29:02 +00:00
refactor: simplify and speed up plan output formatting by removing name resolver dependency
This commit is contained in:
1 parent
95f80a7fda
commit
e4cb71b878
13 files changed
+96
-150
No files matched your search
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user