- Add dev runner main.py that prefers local src/ over installed pkgmgr - Move Arch/Debian/Fedora packaging files under packaging/* and update build scripts - Adjust .gitignore/.dockerignore for new packaging paths and src/source/ - Improve config defaults discovery to support src/ layout and installed packages - Update architecture diagram and add TODO overview for TAGS/MIRROR/SIGNING_KEY https://chatgpt.com/share/693a76a0-e408-800f-9939-868524cbef4d
15 lines
653 B
Python
15 lines
653 B
Python
import yaml
|
|
from pkgmgr.core.config.load import load_config
|
|
|
|
def show_config(selected_repos, user_config_path, full_config=False):
|
|
"""Display configuration for one or more repositories, or the entire merged config."""
|
|
if full_config:
|
|
merged = load_config(user_config_path)
|
|
print(yaml.dump(merged, default_flow_style=False))
|
|
else:
|
|
for repo in selected_repos:
|
|
identifier = f'{repo.get("provider")}/{repo.get("account")}/{repo.get("repository")}'
|
|
print(f"Repository: {identifier}")
|
|
for key, value in repo.items():
|
|
print(f" {key}: {value}")
|
|
print("-" * 40) |