2025-09-20 15:18:58 +01:00
|
|
|
# Nushell Plugins Development Justfile
|
2025-09-20 19:02:28 +01:00
|
|
|
# Modular task runner with organized command categories
|
2025-09-20 15:18:58 +01:00
|
|
|
|
|
|
|
# Set shell to bash for compatibility
|
|
|
|
set shell := ["bash", "-c"]
|
|
|
|
|
2025-09-20 19:02:28 +01:00
|
|
|
# Import all module justfiles
|
|
|
|
import 'justfiles/alias.just'
|
|
|
|
import 'justfiles/help.just'
|
|
|
|
import 'justfiles/build.just'
|
|
|
|
import 'justfiles/distro.just'
|
2025-09-24 18:52:07 +01:00
|
|
|
import 'justfiles/full_distro.just'
|
2025-09-20 19:02:28 +01:00
|
|
|
import 'justfiles/upstream.just'
|
|
|
|
import 'justfiles/qa.just'
|
|
|
|
import 'justfiles/tools.just'
|
|
|
|
|
|
|
|
# Default recipe - show modular help
|
|
|
|
[no-cd]
|
2025-09-20 15:18:58 +01:00
|
|
|
default:
|
2025-09-20 19:02:28 +01:00
|
|
|
@just help
|
2025-09-20 15:18:58 +01:00
|
|
|
|
|
|
|
|
2025-09-20 19:02:28 +01:00
|
|
|
# 📊 CORE STATUS COMMANDS (Most frequently used)
|
2025-09-20 15:18:58 +01:00
|
|
|
|
|
|
|
# Show plugin status dashboard
|
2025-09-20 19:02:28 +01:00
|
|
|
[no-cd]
|
2025-09-20 15:18:58 +01:00
|
|
|
status:
|
|
|
|
@echo "📊 Plugin Status Dashboard"
|
2025-09-20 19:02:28 +01:00
|
|
|
@{{justfile_directory()}}/scripts/run.sh plugin_status.nu
|
2025-09-20 15:18:58 +01:00
|
|
|
|
|
|
|
# Show detailed status for all plugins
|
2025-09-20 19:02:28 +01:00
|
|
|
[no-cd]
|
2025-09-20 15:18:58 +01:00
|
|
|
status-all:
|
|
|
|
@echo "📊 All Plugins Status"
|
2025-09-20 19:02:28 +01:00
|
|
|
@{{justfile_directory()}}/scripts/run.sh plugin_status.nu --all
|
2025-09-20 15:18:58 +01:00
|
|
|
|
|
|
|
# Show plugins requiring attention
|
2025-09-20 19:02:28 +01:00
|
|
|
[no-cd]
|
2025-09-20 15:18:58 +01:00
|
|
|
status-attention:
|
|
|
|
@echo "🚨 Plugins Requiring Attention"
|
2025-09-20 19:02:28 +01:00
|
|
|
@{{justfile_directory()}}/scripts/run.sh plugin_status.nu attention
|
2025-09-20 15:18:58 +01:00
|
|
|
|
|
|
|
# Update plugin status manually
|
2025-09-20 19:02:28 +01:00
|
|
|
[no-cd]
|
2025-09-20 15:18:58 +01:00
|
|
|
status-update PLUGIN STATUS:
|
|
|
|
@echo "🔄 Updating {{PLUGIN}} status to {{STATUS}}..."
|
2025-09-20 19:02:28 +01:00
|
|
|
@{{justfile_directory()}}/scripts/run.sh plugin_status.nu update {{PLUGIN}} {{STATUS}}
|
2025-09-20 15:18:58 +01:00
|
|
|
|
2025-09-20 19:02:28 +01:00
|
|
|
# 🎯 MULTI-MODULE WORKFLOW COMMANDS
|
|
|
|
# These workflows combine commands from multiple modules
|
2025-09-20 15:18:58 +01:00
|
|
|
|
2025-09-20 19:02:28 +01:00
|
|
|
# Complete development workflow: validate → upstream check → build → test → status
|
|
|
|
[no-cd]
|
2025-09-20 15:18:58 +01:00
|
|
|
dev-flow:
|
|
|
|
@echo "🎯 Running complete development workflow..."
|
|
|
|
@just validate-nushell
|
|
|
|
@just upstream-check
|
|
|
|
@just build
|
|
|
|
@just test
|
|
|
|
@just status
|
|
|
|
|
2025-09-20 19:02:28 +01:00
|
|
|
# Complete release workflow: validate → build → collect → package
|
|
|
|
[no-cd]
|
2025-09-20 15:18:58 +01:00
|
|
|
release-flow:
|
|
|
|
@echo "🚀 Running complete release workflow..."
|
|
|
|
@just validate-nushell
|
|
|
|
@just build
|
|
|
|
@just collect
|
|
|
|
@just pack
|
|
|
|
|
2025-09-20 19:02:28 +01:00
|
|
|
# Cross-platform development workflow
|
|
|
|
[no-cd]
|
|
|
|
dev-flow-cross:
|
|
|
|
@echo "🌍 Running cross-platform development workflow..."
|
2025-09-20 15:18:58 +01:00
|
|
|
@just validate-nushell
|
2025-09-20 19:02:28 +01:00
|
|
|
@just upstream-check
|
|
|
|
@just build-cross-all
|
|
|
|
@just status
|
|
|
|
|
|
|
|
# CI simulation workflow (what GitHub Actions will run)
|
|
|
|
[no-cd]
|
|
|
|
ci-flow:
|
|
|
|
@echo "🤖 Simulating CI workflow..."
|
|
|
|
@just validate-nushell
|
|
|
|
@just fmt-check
|
2025-09-20 15:18:58 +01:00
|
|
|
@just lint
|
2025-09-20 19:02:28 +01:00
|
|
|
@just build-cross-all
|
2025-09-20 15:18:58 +01:00
|
|
|
@just test
|
2025-09-20 19:02:28 +01:00
|
|
|
@just collect-all
|
|
|
|
@just pack-checksums
|
2025-09-20 15:18:58 +01:00
|
|
|
|
2025-09-20 19:02:28 +01:00
|
|
|
# Update workflow: update nushell → fix version → update versions → check upstream
|
|
|
|
[no-cd]
|
2025-09-20 15:18:58 +01:00
|
|
|
update-flow:
|
|
|
|
@echo "🔄 Running update workflow..."
|
|
|
|
@just update-nushell
|
|
|
|
@just fix-nushell
|
|
|
|
@just update-nu-versions
|
|
|
|
@just upstream-check
|
|
|
|
|