πŸ“„ Config Viewer

YAML Configuration

# Application settings
app:
  name: MyApp
  version: 1.0.0
  debug: true

# Database
database:
  host: localhost
  port: 5432
  name: myapp_db

# Features
features:
  - authentication
  - logging
  - caching

JSON Configuration

{
  "name": "my-project",
  "version": "1.0.0",
  "scripts": {
    "build": "webpack --mode production",
    "test": "jest --coverage"
  },
  "dependencies": {
    "react": "^18.0.0",
    "typescript": "^5.0.0"
  }
}

TOML Configuration

[project]
name= "clickmd"
version= "1.5.0"
description= "Markdown for CLI"

[project.optional-dependencies]
click= ["click>=8.0"]
rich= ["rich>=13.0"]

[tool.pytest]
testpaths= ["tests"]

Environment Variables

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚Variable  β”‚Value                                                  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚PATH      β”‚/home/tom/.cargo/bin:/home/tom/.local/bin:/usr/loc...  β”‚
β”‚HOME      β”‚/home/tom                                              β”‚
β”‚USER      β”‚tom                                                    β”‚
β”‚SHELL     β”‚/bin/bash                                              β”‚
β”‚TERM      β”‚                                                       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Config Diff

--- config.old.yaml
+++ config.new.yaml
@@ -1,3 +1,4 @@
 database:
-  host: localhost
+  host: db.example.com
   port: 5432
+  ssl: true

Config Structure

config/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ name: MyApp
β”‚   └── version: 1.0.0
β”œβ”€β”€ database/
β”‚   β”œβ”€β”€ connection/
β”‚   β”‚   β”œβ”€β”€ host: localhost
β”‚   β”‚   └── port: 5432
β”‚   └── pool/
β”‚       β”œβ”€β”€ min: 5
β”‚       └── max: 20
└── logging/
    β”œβ”€β”€ level: INFO
    └── file: /var/log/app.log