What do you do when you find a 490-line function with ~67 cyclomatic complexity and 0% test coverage on its
critical paths? You refactor it. This post covers how we eliminated the highest-complexity function in
Atmos and replaced it with a clean, table-driven design — achieving 100% unit test coverage along the way.
When a single function accumulates 160 decision branches, it becomes nearly impossible to reason about, test, or safely change.
That's exactly what happened to ExecuteTerraform in Atmos — the beating heart of every atmos terraform call.
This post explains why we refactored it and what we learned along the way.
Atmos stack processing is now up to 3.5× faster for deep-merge operations — the hot path
executed thousands of times per atmos describe component, atmos terraform plan, and every
other command that reads stack configuration.
Introduces pkg/function/, a new format-agnostic function registry that consolidates YAML function handlers into a reusable package.
This release brings powerful enhancements to color output in CI/CD environments and significant code quality improvements that make Atmos more maintainable and performant.
The theme commands have been migrated to use the modern StandardFlagParser infrastructure, bringing them in line with other Atmos commands.
We've implemented a centralized authentication context system to enable concurrent multi-provider identities - allowing Atmos to manage AWS, GitHub, and other cloud provider credentials simultaneously in a single operation.
We're excited to announce the first step in a major architectural evolution for Atmos: the Command Registry Pattern. This foundational change will eventually enable pluggable commands, allowing the community to extend Atmos with custom command packages without modifying the core codebase.