# Help Module - Comprehensive Help System # Organized help areas with navigation and guidance # Show help system with optional area argument [no-cd] help AREA="": #!/usr/bin/env bash case "{{AREA}}" in "") # Default basic help overview echo "๐Ÿš€ Nushell Plugins Development Environment" echo "========================================" echo "" echo "๐Ÿ“‹ HELP AREAS - Use: just help " echo "======================================" echo "" echo " modules - Available modules and their commands" echo " status - Status and information commands" echo " get-started - Getting started guide" echo " docs - Documentation and resources" echo "" echo "๐Ÿ’ก QUICK ACCESS:" echo "===============" echo " just h - Short alias for help" echo " just b - Build all plugins (alias for build)" echo " just c - Collect nushell + all plugins (alias for collect)" echo " just il - Install plugin in nu from local distro (alias for install-local)" echo " just is - Install to ~/.local/bin (alias for install-system)" echo " just s - Show plugin status (alias for status)" echo " just v - Verify plugins (alias for verify-plugins)" echo " just validate-nushell - Check version consistency (START HERE)" echo " just dev-flow - Complete development workflow" echo "" echo "๐Ÿ”ง Most Common Commands:" echo "=======================" echo " just build - Build all plugins" echo " just build-nushell - Build nushell + system plugins" echo " just build-full - Build nushell + all plugins" echo " just collect - Collect nushell + all plugins" echo " just collect-all - Collect nushell + all plugins (all platforms)" echo " just test - Run all tests" echo " just upstream-check - Check for upstream changes" echo " just pack-full - Create complete distribution" echo " just release-full-cross - Full cross-platform release" ;; "modules") echo "๐Ÿ“‹ AVAILABLE MODULES" echo "===================" echo "" echo "๐Ÿ”จ BUILD MODULE" echo " Commands: build, build-cross, build-docker-*" echo " Help: just build-help" echo " Purpose: Native and cross-platform compilation" echo "" echo "๐Ÿ“ฆ DISTRIBUTION MODULE" echo " Commands: collect, collect-all, pack, release-*" echo " Help: just distro-help" echo " Purpose: Collection and packaging (UPDATED: now includes nushell + system plugins)" echo "" echo "๐Ÿš€ FULL DISTRIBUTION MODULE" echo " Commands: build-full*, pack-full*, release-full*" echo " Help: just full-help" echo " Purpose: Complete Nushell distributions with zero prerequisites" echo "" echo "๐Ÿ”„ UPSTREAM MODULE" echo " Commands: upstream-*, status-*" echo " Help: just upstream-help" echo " Purpose: Repository tracking and synchronization" echo "" echo "๐Ÿงช QA MODULE" echo " Commands: test, lint, fmt, audit, qa-*" echo " Help: just qa-help" echo " Purpose: Testing, linting, and code quality" echo "" echo "๐Ÿ› ๏ธ TOOLS MODULE" echo " Commands: validate-*, make-plugin, interactive" echo " Help: just tools-help" echo " Purpose: Development tools and utilities" echo "" echo "๐Ÿ’ก TIP: Use 'just -help' for detailed commands in each module" ;; "status" | "info") echo "๐Ÿ“Š STATUS & INFORMATION COMMANDS" echo "================================" echo "" echo "๐Ÿ” System Status:" echo " just status - Plugin status dashboard" echo " just status-all - Detailed status for all plugins" echo " just status-attention - Plugins requiring attention" echo " just system-info - System information" echo " just validate - Validate setup and dependencies" echo "" echo "๐Ÿ“‹ Project Information:" echo " just modules - List all available modules" echo " just list-plugins - List all plugins" echo " just stats - Project statistics" echo " just config-list - Show configuration files" echo "" echo "๐Ÿ”ง Version Management:" echo " just validate-nushell - Check nushell version consistency" echo " just list-nu-versions - List current nu dependency versions" echo " just build-targets - List available build targets" ;; "get-started" | "start") echo "๐Ÿ’ก GETTING STARTED GUIDE" echo "========================" echo "" echo "๐Ÿš€ FIRST TIME SETUP:" echo "1. Validate your environment:" echo " just validate # Check tools and setup" echo " just validate-nushell # Check version consistency (CRITICAL)" echo "" echo "2. Check project status:" echo " just status # See plugin status dashboard" echo " just upstream-check # Check for upstream changes" echo "" echo "๐Ÿ“… DAILY DEVELOPMENT WORKFLOW:" echo "1. Run the development workflow:" echo " just dev-flow # validate โ†’ upstream โ†’ build โ†’ test โ†’ status" echo "" echo "2. Or run individual steps:" echo " just validate-nushell # Always start here" echo " just upstream-check # Check for updates" echo " just b # Build all plugins (short alias)" echo " just test # Run tests" echo "" echo "๐Ÿš€ FULL DISTRIBUTION WORKFLOW:" echo "1. Build complete distributions:" echo " just build-full # Build nushell + all plugins" echo " just pack-full # Create distribution package" echo "" echo "2. Cross-platform release:" echo " just release-full-cross # Build for all platforms" echo "" echo "3. End-user installation:" echo " curl -sSf https://your-url/install.sh | sh" echo "" echo "๐Ÿ†˜ NEED HELP?" echo " just help modules # See all available modules" echo " just build-help # Build-specific commands" echo " just qa-help # Testing and quality commands" ;; "docs" | "documentation") echo "๐Ÿ“š DOCUMENTATION & RESOURCES" echo "============================" echo "" echo "๐Ÿ“– Main Documentation:" echo " docs/BUILDING.md - Complete build documentation" echo " README.md - Project overview" echo "" echo "โš™๏ธ Configuration Files:" echo " etc/plugin_registry.toml - Plugin tracking configuration" echo " etc/build_targets.toml - Cross-compilation targets" echo " etc/upstream_exclude.toml - Upstream exclusion rules" echo "" echo "๐Ÿ”ง Auto-Generated Documentation:" echo " just docs - Generate Rust documentation" echo " just docs-open PLUGIN - Open plugin docs in browser" echo "" echo "๐Ÿ’ก Examples & Help:" echo " just help modules - Module overview" echo " just help get-started - Getting started guide" echo " just -help - Detailed module help" echo "" echo "๐ŸŒ Online Resources:" echo " Nushell: https://nushell.sh" echo " Rust: https://rust-lang.org" echo " Just: https://github.com/casey/just" ;; *) echo "โŒ Unknown help area: {{AREA}}" echo "" echo "Available help areas:" echo " modules - Available modules and commands" echo " status - Status and information commands" echo " get-started - Getting started guide" echo " docs - Documentation and resources" echo "" echo "Usage: just help [area]" echo " just h [area] # Short alias" ;; esac # List all available modules [no-cd] modules: @echo "๐Ÿ“‹ Available Justfile Modules:" @echo "=============================" @echo "" @echo "๐Ÿ”จ BUILD MODULE (justfiles/build.just)" @echo " Native and cross-platform compilation" @echo " Commands: build, build-cross, build-docker-*" @echo " Help: just build-help" @echo "" @echo "๐Ÿ“ฆ DISTRIBUTION MODULE (justfiles/distro.just)" @echo " Collection and packaging of plugins" @echo " Commands: collect, pack, release-*" @echo " Help: just distro-help" @echo "" @echo "๐Ÿš€ FULL DISTRIBUTION MODULE (justfiles/full_distro.just)" @echo " Complete Nushell distributions with zero prerequisites" @echo " Commands: build-full*, pack-full*, release-full*" @echo " Help: just full-help" @echo "" @echo "๐Ÿ”„ UPSTREAM MODULE (justfiles/upstream.just)" @echo " Repository tracking and synchronization" @echo " Commands: upstream-*, status-*" @echo " Help: just upstream-help" @echo "" @echo "๐Ÿงช QA MODULE (justfiles/qa.just)" @echo " Testing, linting, and code quality" @echo " Commands: test, lint, fmt, audit, qa-*" @echo " Help: just qa-help" @echo "" @echo "๐Ÿ› ๏ธ TOOLS MODULE (justfiles/tools.just)" @echo " Development tools and utilities" @echo " Commands: validate-*, make-plugin, interactive" @echo " Help: just tools-help" @echo "" @echo "๐ŸŽฏ ALIAS MODULE (justfiles/alias.just)" @echo " Quick access shortcuts" @echo " Aliases: h (help), b (build), s (status)" @echo "" @echo "๐Ÿ†˜ HELP MODULE (justfiles/help.just)" @echo " Comprehensive help system" @echo " Commands: help, modules" # Quick access to all module help commands [no-cd] help-all: @echo "๐Ÿ“š Complete Help for All Modules" @echo "================================" @echo "" @just build-help @echo "" @just distro-help @echo "" @just full-help @echo "" @just upstream-help @echo "" @just qa-help @echo "" @just tools-help # List all available commands across all modules [no-cd] list-all: @echo "๐Ÿ“‹ All Available Commands:" @echo "=========================" @echo "" @echo "Use 'just --list' to see all commands, or:" @echo " just help - Main help with module overview" @echo " just modules - List all modules" @echo " just help-all - Complete help for all modules" @echo "" @echo "Module-specific help:" @echo " just build-help - Build module commands" @echo " just distro-help - Plugin distribution commands" @echo " just full-help - Full distribution commands" @echo " just upstream-help - Upstream module commands" @echo " just qa-help - QA module commands" @echo " just tools-help - Tools module commands"