Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 1.25 KB

File metadata and controls

57 lines (40 loc) · 1.25 KB

nu-scripts

Personal collection of Nushell scripts, modules, custom commands, aliases, and data processing pipelines.

Structure

  • src/modules/ - Reusable Nushell modules with exported functions and constants
  • src/commands/ - Custom command definitions
  • src/scripts/ - Standalone script files
  • src/aliases/ - Custom aliases for common operations
  • src/pipelines/ - Data processing pipeline scripts
  • tests/ - Test files for modules and commands
  • examples/ - Example usage and demonstration files
  • docs/ - Documentation and guides

Usage

Loading Modules

# Load a specific module
use src/modules/mymodule.nu

# Load all modules
use src/modules/mod.nu *

Running Scripts

# Execute a script
nu src/scripts/myscript.nu

# Source commands into current session
source src/commands/mycommands.nu

Testing

# Run all tests
nu tests/mod.nu

# Run specific test file
nu tests/test_mymodule.nu

Development

See CLAUDE.md for development guidance and docs/guides/ for detailed documentation on creating modules and commands.

Examples

Check the examples/ directory for:

  • Basic module structure (basic_module.nu)
  • Custom command patterns (custom_command.nu)
  • Testing examples (test_example.nu)