π 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