github cloudposse/atmos v1.176.0-rc.1

latest releases: v1.190.0-test.0, v1.190.0-rc.0, v1.189.0...
pre-release3 months ago
Configure YAML formatting in atmos describe commands @Cerebrovinny (#1180) ## what

This PR makes the indentation and empty components configurable trough atmos.yaml file.

why

Evidence:
custom tab width: 4
Screenshot 2025-03-31 at 13 06 49

tab width: 2 (default config)
Screenshot 2025-03-31 at 13 07 12

Include Empty False (default config)
Screenshot 2025-03-31 at 13 07 42

# Atmos Describe Settings
describe:
  settings:
    include_empty: false

# Global settings
settings:
  terminal:
    tab_width: 4 # default should be 2

references

Summary by CodeRabbit

  • New Features

    • Added support for configurable YAML indentation in terminal output via a new tab_width setting.
    • Introduced a configuration option to control inclusion of empty sections in stack and component descriptions.
    • Enabled filtering of empty sections and empty string values from describe command outputs.
  • Improvements

    • Updated logging to use a structured logging library for clearer debug and info messages.
    • YAML and JSON output formatting now respects user-defined indentation settings and is more consistent.
    • Enhanced describe command output to conditionally exclude empty sections based on configuration.
  • Bug Fixes

    • Fixed handling of nil configuration pointers in YAML utilities to prevent errors.
  • Documentation

    • Updated documentation to include the new tab_width configuration option.
  • Tests

    • Added comprehensive tests for filtering empty sections, YAML output formatting, and new configuration options.
    • Added unit tests for empty section filtering logic and configuration retrieval functions.
add pager for describe component @samtholiya (#1215) ## what
  • We are adding pager to atmos describe component
  • We fixed the bug in the function that would assume the data is always atmosConfig and then use it to Highlight the data. This was all good if the data is atmosConfig but not for other cases.

image

why

  • We want user to give a consistent experience.

references

Summary by CodeRabbit

  • New Features
    • Introduced a pager option for the describe component command, enabling paged output with syntax highlighting for YAML and JSON formats.
    • Enhanced output formatting with customizable syntax highlighting based on user configuration.
  • Bug Fixes
    • Improved argument validation and error handling for CLI commands.
  • Documentation
    • Added documentation for the new --pager flag in the describe component command.
  • Tests
    • Added unit and integration tests covering pager functionality, output formatting, and CLI command execution.
  • Refactor
    • Refactored command execution and output handling for improved modularity, testability, and configuration management.
    • Updated output functions to accept configuration context for consistent formatting and highlighting.

Don't miss a new atmos release

NewReleases is sending notifications on new releases.