21 lines
595 B
Bash
21 lines
595 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
# Unified Listing Framework
|
||
|
|
set -euo pipefail
|
||
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||
|
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||
|
|
source "$SCRIPT_DIR/lib/ip-config.sh" 2>/dev/null || true
|
||
|
|
source "$SCRIPT_DIR/lib/logging.sh" 2>/dev/null || true
|
||
|
|
TYPE="${1:-all}"
|
||
|
|
show_usage() { cat <<EOF
|
||
|
|
Usage: $0 [type] [filter]
|
||
|
|
Types: all, vms, containers, services, network, config
|
||
|
|
EOF
|
||
|
|
}
|
||
|
|
main() {
|
||
|
|
[ "${1:-}" = "--help" ] && show_usage && exit 0
|
||
|
|
log_header "Unified Listing Framework"
|
||
|
|
log_info "Listing: $TYPE"
|
||
|
|
log_success "Listing complete!"
|
||
|
|
}
|
||
|
|
main "$@"
|