2025-10-07 10:32:04 +01:00
|
|
|
# Extension System Quick Start Guide
|
|
|
|
|
|
|
|
|
|
Get started with the Extension Loading System in 5 minutes.
|
|
|
|
|
|
|
|
|
|
## Prerequisites
|
|
|
|
|
|
|
|
|
|
1. **OCI Registry** (optional, for OCI features):
|
chore: complete KCL to Nickel migration cleanup and setup pre-commit
Clean up 404 KCL references (99.75% complete):
- Rename kcl_* variables to schema_*/nickel_* (kcl_path→schema_path, etc.)
- Update functions: parse_kcl_file→parse_nickel_file
- Update env vars: KCL_MOD_PATH→NICKEL_IMPORT_PATH
- Fix cli/providers-install: add has_nickel and nickel_version variables
- Correct import syntax: .nickel.→.ncl.
- Update 57 files across core, CLI, config, and utilities
Configure pre-commit hooks:
- Activate: nushell-check, nickel-typecheck, markdownlint
- Comment out: Rust hooks (fmt, clippy, test), check-yaml
Testing:
- Module discovery: 9 modules (6 providers, 1 taskserv, 2 clusters) ✅
- Syntax validation: 15 core files ✅
- Pre-commit hooks: all passing ✅
2026-01-08 20:08:46 +00:00
|
|
|
|
2025-10-07 10:32:04 +01:00
|
|
|
```bash
|
|
|
|
|
# Start local registry
|
|
|
|
|
docker run -d -p 5000:5000 --name registry registry:2
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
2. **Nushell 0.107+**:
|
chore: complete KCL to Nickel migration cleanup and setup pre-commit
Clean up 404 KCL references (99.75% complete):
- Rename kcl_* variables to schema_*/nickel_* (kcl_path→schema_path, etc.)
- Update functions: parse_kcl_file→parse_nickel_file
- Update env vars: KCL_MOD_PATH→NICKEL_IMPORT_PATH
- Fix cli/providers-install: add has_nickel and nickel_version variables
- Correct import syntax: .nickel.→.ncl.
- Update 57 files across core, CLI, config, and utilities
Configure pre-commit hooks:
- Activate: nushell-check, nickel-typecheck, markdownlint
- Comment out: Rust hooks (fmt, clippy, test), check-yaml
Testing:
- Module discovery: 9 modules (6 providers, 1 taskserv, 2 clusters) ✅
- Syntax validation: 15 core files ✅
- Pre-commit hooks: all passing ✅
2026-01-08 20:08:46 +00:00
|
|
|
|
2025-10-07 10:32:04 +01:00
|
|
|
```bash
|
|
|
|
|
nu --version
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Quick Start
|
|
|
|
|
|
|
|
|
|
### 1. Load an Extension
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Load latest from auto-detected source
|
|
|
|
|
provisioning ext load kubernetes
|
|
|
|
|
|
|
|
|
|
# Load specific version
|
|
|
|
|
provisioning ext load kubernetes --version 1.28.0
|
|
|
|
|
|
|
|
|
|
# Load from specific source
|
|
|
|
|
provisioning ext load redis --source oci
|
chore: complete KCL to Nickel migration cleanup and setup pre-commit
Clean up 404 KCL references (99.75% complete):
- Rename kcl_* variables to schema_*/nickel_* (kcl_path→schema_path, etc.)
- Update functions: parse_kcl_file→parse_nickel_file
- Update env vars: KCL_MOD_PATH→NICKEL_IMPORT_PATH
- Fix cli/providers-install: add has_nickel and nickel_version variables
- Correct import syntax: .nickel.→.ncl.
- Update 57 files across core, CLI, config, and utilities
Configure pre-commit hooks:
- Activate: nushell-check, nickel-typecheck, markdownlint
- Comment out: Rust hooks (fmt, clippy, test), check-yaml
Testing:
- Module discovery: 9 modules (6 providers, 1 taskserv, 2 clusters) ✅
- Syntax validation: 15 core files ✅
- Pre-commit hooks: all passing ✅
2026-01-08 20:08:46 +00:00
|
|
|
```plaintext
|
2025-10-07 10:32:04 +01:00
|
|
|
|
|
|
|
|
### 2. Search for Extensions
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Search all sources
|
|
|
|
|
provisioning ext search kube
|
|
|
|
|
|
|
|
|
|
# Search OCI registry
|
|
|
|
|
provisioning ext search postgres --source oci
|
chore: complete KCL to Nickel migration cleanup and setup pre-commit
Clean up 404 KCL references (99.75% complete):
- Rename kcl_* variables to schema_*/nickel_* (kcl_path→schema_path, etc.)
- Update functions: parse_kcl_file→parse_nickel_file
- Update env vars: KCL_MOD_PATH→NICKEL_IMPORT_PATH
- Fix cli/providers-install: add has_nickel and nickel_version variables
- Correct import syntax: .nickel.→.ncl.
- Update 57 files across core, CLI, config, and utilities
Configure pre-commit hooks:
- Activate: nushell-check, nickel-typecheck, markdownlint
- Comment out: Rust hooks (fmt, clippy, test), check-yaml
Testing:
- Module discovery: 9 modules (6 providers, 1 taskserv, 2 clusters) ✅
- Syntax validation: 15 core files ✅
- Pre-commit hooks: all passing ✅
2026-01-08 20:08:46 +00:00
|
|
|
```plaintext
|
2025-10-07 10:32:04 +01:00
|
|
|
|
|
|
|
|
### 3. List Available Extensions
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# List all
|
|
|
|
|
provisioning ext list
|
|
|
|
|
|
|
|
|
|
# Filter by type
|
|
|
|
|
provisioning ext list --type taskserv
|
|
|
|
|
|
|
|
|
|
# JSON format
|
|
|
|
|
provisioning ext list --format json
|
chore: complete KCL to Nickel migration cleanup and setup pre-commit
Clean up 404 KCL references (99.75% complete):
- Rename kcl_* variables to schema_*/nickel_* (kcl_path→schema_path, etc.)
- Update functions: parse_kcl_file→parse_nickel_file
- Update env vars: KCL_MOD_PATH→NICKEL_IMPORT_PATH
- Fix cli/providers-install: add has_nickel and nickel_version variables
- Correct import syntax: .nickel.→.ncl.
- Update 57 files across core, CLI, config, and utilities
Configure pre-commit hooks:
- Activate: nushell-check, nickel-typecheck, markdownlint
- Comment out: Rust hooks (fmt, clippy, test), check-yaml
Testing:
- Module discovery: 9 modules (6 providers, 1 taskserv, 2 clusters) ✅
- Syntax validation: 15 core files ✅
- Pre-commit hooks: all passing ✅
2026-01-08 20:08:46 +00:00
|
|
|
```plaintext
|
2025-10-07 10:32:04 +01:00
|
|
|
|
|
|
|
|
### 4. Manage Cache
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Show cache stats
|
|
|
|
|
provisioning ext cache stats
|
|
|
|
|
|
|
|
|
|
# List cached
|
|
|
|
|
provisioning ext cache list
|
|
|
|
|
|
|
|
|
|
# Clear cache
|
|
|
|
|
provisioning ext cache clear --all
|
chore: complete KCL to Nickel migration cleanup and setup pre-commit
Clean up 404 KCL references (99.75% complete):
- Rename kcl_* variables to schema_*/nickel_* (kcl_path→schema_path, etc.)
- Update functions: parse_kcl_file→parse_nickel_file
- Update env vars: KCL_MOD_PATH→NICKEL_IMPORT_PATH
- Fix cli/providers-install: add has_nickel and nickel_version variables
- Correct import syntax: .nickel.→.ncl.
- Update 57 files across core, CLI, config, and utilities
Configure pre-commit hooks:
- Activate: nushell-check, nickel-typecheck, markdownlint
- Comment out: Rust hooks (fmt, clippy, test), check-yaml
Testing:
- Module discovery: 9 modules (6 providers, 1 taskserv, 2 clusters) ✅
- Syntax validation: 15 core files ✅
- Pre-commit hooks: all passing ✅
2026-01-08 20:08:46 +00:00
|
|
|
```plaintext
|
2025-10-07 10:32:04 +01:00
|
|
|
|
|
|
|
|
### 5. Publish an Extension
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Create extension
|
chore: complete KCL to Nickel migration cleanup and setup pre-commit
Clean up 404 KCL references (99.75% complete):
- Rename kcl_* variables to schema_*/nickel_* (kcl_path→schema_path, etc.)
- Update functions: parse_kcl_file→parse_nickel_file
- Update env vars: KCL_MOD_PATH→NICKEL_IMPORT_PATH
- Fix cli/providers-install: add has_nickel and nickel_version variables
- Correct import syntax: .nickel.→.ncl.
- Update 57 files across core, CLI, config, and utilities
Configure pre-commit hooks:
- Activate: nushell-check, nickel-typecheck, markdownlint
- Comment out: Rust hooks (fmt, clippy, test), check-yaml
Testing:
- Module discovery: 9 modules (6 providers, 1 taskserv, 2 clusters) ✅
- Syntax validation: 15 core files ✅
- Pre-commit hooks: all passing ✅
2026-01-08 20:08:46 +00:00
|
|
|
mkdir -p my-extension/{nickel,scripts}
|
2025-10-07 10:32:04 +01:00
|
|
|
|
|
|
|
|
# Create manifest
|
|
|
|
|
cat > my-extension/extension.yaml <<EOF
|
|
|
|
|
extension:
|
|
|
|
|
name: my-extension
|
|
|
|
|
version: 1.0.0
|
|
|
|
|
type: taskserv
|
|
|
|
|
description: My awesome extension
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
# Publish to OCI
|
|
|
|
|
provisioning ext publish ./my-extension --version 1.0.0
|
chore: complete KCL to Nickel migration cleanup and setup pre-commit
Clean up 404 KCL references (99.75% complete):
- Rename kcl_* variables to schema_*/nickel_* (kcl_path→schema_path, etc.)
- Update functions: parse_kcl_file→parse_nickel_file
- Update env vars: KCL_MOD_PATH→NICKEL_IMPORT_PATH
- Fix cli/providers-install: add has_nickel and nickel_version variables
- Correct import syntax: .nickel.→.ncl.
- Update 57 files across core, CLI, config, and utilities
Configure pre-commit hooks:
- Activate: nushell-check, nickel-typecheck, markdownlint
- Comment out: Rust hooks (fmt, clippy, test), check-yaml
Testing:
- Module discovery: 9 modules (6 providers, 1 taskserv, 2 clusters) ✅
- Syntax validation: 15 core files ✅
- Pre-commit hooks: all passing ✅
2026-01-08 20:08:46 +00:00
|
|
|
```plaintext
|
2025-10-07 10:32:04 +01:00
|
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
|
|
|
|
|
### Enable OCI Registry
|
|
|
|
|
|
|
|
|
|
Edit `workspace/config/local-overrides.toml`:
|
|
|
|
|
|
|
|
|
|
```toml
|
|
|
|
|
[oci]
|
|
|
|
|
registry = "localhost:5000"
|
|
|
|
|
namespace = "provisioning-extensions"
|
|
|
|
|
auth_token_path = "~/.provisioning/oci-token"
|
|
|
|
|
|
|
|
|
|
[extensions]
|
|
|
|
|
source_type = "auto" # auto, oci, gitea, local
|
chore: complete KCL to Nickel migration cleanup and setup pre-commit
Clean up 404 KCL references (99.75% complete):
- Rename kcl_* variables to schema_*/nickel_* (kcl_path→schema_path, etc.)
- Update functions: parse_kcl_file→parse_nickel_file
- Update env vars: KCL_MOD_PATH→NICKEL_IMPORT_PATH
- Fix cli/providers-install: add has_nickel and nickel_version variables
- Correct import syntax: .nickel.→.ncl.
- Update 57 files across core, CLI, config, and utilities
Configure pre-commit hooks:
- Activate: nushell-check, nickel-typecheck, markdownlint
- Comment out: Rust hooks (fmt, clippy, test), check-yaml
Testing:
- Module discovery: 9 modules (6 providers, 1 taskserv, 2 clusters) ✅
- Syntax validation: 15 core files ✅
- Pre-commit hooks: all passing ✅
2026-01-08 20:08:46 +00:00
|
|
|
```plaintext
|
2025-10-07 10:32:04 +01:00
|
|
|
|
|
|
|
|
### Test OCI Connection
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
provisioning ext test-oci
|
chore: complete KCL to Nickel migration cleanup and setup pre-commit
Clean up 404 KCL references (99.75% complete):
- Rename kcl_* variables to schema_*/nickel_* (kcl_path→schema_path, etc.)
- Update functions: parse_kcl_file→parse_nickel_file
- Update env vars: KCL_MOD_PATH→NICKEL_IMPORT_PATH
- Fix cli/providers-install: add has_nickel and nickel_version variables
- Correct import syntax: .nickel.→.ncl.
- Update 57 files across core, CLI, config, and utilities
Configure pre-commit hooks:
- Activate: nushell-check, nickel-typecheck, markdownlint
- Comment out: Rust hooks (fmt, clippy, test), check-yaml
Testing:
- Module discovery: 9 modules (6 providers, 1 taskserv, 2 clusters) ✅
- Syntax validation: 15 core files ✅
- Pre-commit hooks: all passing ✅
2026-01-08 20:08:46 +00:00
|
|
|
```plaintext
|
2025-10-07 10:32:04 +01:00
|
|
|
|
|
|
|
|
## Common Workflows
|
|
|
|
|
|
|
|
|
|
### Workflow 1: Install Taskserv from OCI
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Search for taskserv
|
|
|
|
|
provisioning ext search kubernetes --source oci
|
|
|
|
|
|
|
|
|
|
# Load it
|
|
|
|
|
provisioning ext load kubernetes --version ^1.28.0
|
|
|
|
|
|
|
|
|
|
# Use in provisioning
|
|
|
|
|
provisioning taskserv create kubernetes
|
chore: complete KCL to Nickel migration cleanup and setup pre-commit
Clean up 404 KCL references (99.75% complete):
- Rename kcl_* variables to schema_*/nickel_* (kcl_path→schema_path, etc.)
- Update functions: parse_kcl_file→parse_nickel_file
- Update env vars: KCL_MOD_PATH→NICKEL_IMPORT_PATH
- Fix cli/providers-install: add has_nickel and nickel_version variables
- Correct import syntax: .nickel.→.ncl.
- Update 57 files across core, CLI, config, and utilities
Configure pre-commit hooks:
- Activate: nushell-check, nickel-typecheck, markdownlint
- Comment out: Rust hooks (fmt, clippy, test), check-yaml
Testing:
- Module discovery: 9 modules (6 providers, 1 taskserv, 2 clusters) ✅
- Syntax validation: 15 core files ✅
- Pre-commit hooks: all passing ✅
2026-01-08 20:08:46 +00:00
|
|
|
```plaintext
|
2025-10-07 10:32:04 +01:00
|
|
|
|
|
|
|
|
### Workflow 2: Develop and Test Locally
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Copy to local path
|
|
|
|
|
cp -r my-extension ~/.provisioning-extensions/taskservs/
|
|
|
|
|
|
|
|
|
|
# Load locally
|
|
|
|
|
provisioning ext load my-extension --source local
|
|
|
|
|
|
|
|
|
|
# Test
|
|
|
|
|
provisioning taskserv create my-extension --check
|
|
|
|
|
|
|
|
|
|
# Publish when ready
|
|
|
|
|
provisioning ext publish ./my-extension --version 1.0.0
|
chore: complete KCL to Nickel migration cleanup and setup pre-commit
Clean up 404 KCL references (99.75% complete):
- Rename kcl_* variables to schema_*/nickel_* (kcl_path→schema_path, etc.)
- Update functions: parse_kcl_file→parse_nickel_file
- Update env vars: KCL_MOD_PATH→NICKEL_IMPORT_PATH
- Fix cli/providers-install: add has_nickel and nickel_version variables
- Correct import syntax: .nickel.→.ncl.
- Update 57 files across core, CLI, config, and utilities
Configure pre-commit hooks:
- Activate: nushell-check, nickel-typecheck, markdownlint
- Comment out: Rust hooks (fmt, clippy, test), check-yaml
Testing:
- Module discovery: 9 modules (6 providers, 1 taskserv, 2 clusters) ✅
- Syntax validation: 15 core files ✅
- Pre-commit hooks: all passing ✅
2026-01-08 20:08:46 +00:00
|
|
|
```plaintext
|
2025-10-07 10:32:04 +01:00
|
|
|
|
|
|
|
|
### Workflow 3: Offline Usage
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Pull extensions to cache while online
|
|
|
|
|
provisioning ext pull kubernetes --version 1.28.0
|
|
|
|
|
provisioning ext pull redis --version 7.0.0
|
|
|
|
|
provisioning ext pull postgres --version 15.0.0
|
|
|
|
|
|
|
|
|
|
# Work offline - uses cache
|
|
|
|
|
provisioning ext load kubernetes
|
|
|
|
|
provisioning ext load redis
|
chore: complete KCL to Nickel migration cleanup and setup pre-commit
Clean up 404 KCL references (99.75% complete):
- Rename kcl_* variables to schema_*/nickel_* (kcl_path→schema_path, etc.)
- Update functions: parse_kcl_file→parse_nickel_file
- Update env vars: KCL_MOD_PATH→NICKEL_IMPORT_PATH
- Fix cli/providers-install: add has_nickel and nickel_version variables
- Correct import syntax: .nickel.→.ncl.
- Update 57 files across core, CLI, config, and utilities
Configure pre-commit hooks:
- Activate: nushell-check, nickel-typecheck, markdownlint
- Comment out: Rust hooks (fmt, clippy, test), check-yaml
Testing:
- Module discovery: 9 modules (6 providers, 1 taskserv, 2 clusters) ✅
- Syntax validation: 15 core files ✅
- Pre-commit hooks: all passing ✅
2026-01-08 20:08:46 +00:00
|
|
|
```plaintext
|
2025-10-07 10:32:04 +01:00
|
|
|
|
|
|
|
|
## Extension Structure
|
|
|
|
|
|
|
|
|
|
Minimal extension:
|
|
|
|
|
|
chore: complete KCL to Nickel migration cleanup and setup pre-commit
Clean up 404 KCL references (99.75% complete):
- Rename kcl_* variables to schema_*/nickel_* (kcl_path→schema_path, etc.)
- Update functions: parse_kcl_file→parse_nickel_file
- Update env vars: KCL_MOD_PATH→NICKEL_IMPORT_PATH
- Fix cli/providers-install: add has_nickel and nickel_version variables
- Correct import syntax: .nickel.→.ncl.
- Update 57 files across core, CLI, config, and utilities
Configure pre-commit hooks:
- Activate: nushell-check, nickel-typecheck, markdownlint
- Comment out: Rust hooks (fmt, clippy, test), check-yaml
Testing:
- Module discovery: 9 modules (6 providers, 1 taskserv, 2 clusters) ✅
- Syntax validation: 15 core files ✅
- Pre-commit hooks: all passing ✅
2026-01-08 20:08:46 +00:00
|
|
|
```plaintext
|
2025-10-07 10:32:04 +01:00
|
|
|
my-extension/
|
|
|
|
|
├── extension.yaml # Required manifest
|
chore: complete KCL to Nickel migration cleanup and setup pre-commit
Clean up 404 KCL references (99.75% complete):
- Rename kcl_* variables to schema_*/nickel_* (kcl_path→schema_path, etc.)
- Update functions: parse_kcl_file→parse_nickel_file
- Update env vars: KCL_MOD_PATH→NICKEL_IMPORT_PATH
- Fix cli/providers-install: add has_nickel and nickel_version variables
- Correct import syntax: .nickel.→.ncl.
- Update 57 files across core, CLI, config, and utilities
Configure pre-commit hooks:
- Activate: nushell-check, nickel-typecheck, markdownlint
- Comment out: Rust hooks (fmt, clippy, test), check-yaml
Testing:
- Module discovery: 9 modules (6 providers, 1 taskserv, 2 clusters) ✅
- Syntax validation: 15 core files ✅
- Pre-commit hooks: all passing ✅
2026-01-08 20:08:46 +00:00
|
|
|
└── nickel/ # At least one content dir
|
|
|
|
|
└── my-extension.ncl
|
|
|
|
|
```plaintext
|
2025-10-07 10:32:04 +01:00
|
|
|
|
|
|
|
|
Complete extension:
|
|
|
|
|
|
chore: complete KCL to Nickel migration cleanup and setup pre-commit
Clean up 404 KCL references (99.75% complete):
- Rename kcl_* variables to schema_*/nickel_* (kcl_path→schema_path, etc.)
- Update functions: parse_kcl_file→parse_nickel_file
- Update env vars: KCL_MOD_PATH→NICKEL_IMPORT_PATH
- Fix cli/providers-install: add has_nickel and nickel_version variables
- Correct import syntax: .nickel.→.ncl.
- Update 57 files across core, CLI, config, and utilities
Configure pre-commit hooks:
- Activate: nushell-check, nickel-typecheck, markdownlint
- Comment out: Rust hooks (fmt, clippy, test), check-yaml
Testing:
- Module discovery: 9 modules (6 providers, 1 taskserv, 2 clusters) ✅
- Syntax validation: 15 core files ✅
- Pre-commit hooks: all passing ✅
2026-01-08 20:08:46 +00:00
|
|
|
```plaintext
|
2025-10-07 10:32:04 +01:00
|
|
|
my-extension/
|
|
|
|
|
├── extension.yaml # Manifest
|
chore: complete KCL to Nickel migration cleanup and setup pre-commit
Clean up 404 KCL references (99.75% complete):
- Rename kcl_* variables to schema_*/nickel_* (kcl_path→schema_path, etc.)
- Update functions: parse_kcl_file→parse_nickel_file
- Update env vars: KCL_MOD_PATH→NICKEL_IMPORT_PATH
- Fix cli/providers-install: add has_nickel and nickel_version variables
- Correct import syntax: .nickel.→.ncl.
- Update 57 files across core, CLI, config, and utilities
Configure pre-commit hooks:
- Activate: nushell-check, nickel-typecheck, markdownlint
- Comment out: Rust hooks (fmt, clippy, test), check-yaml
Testing:
- Module discovery: 9 modules (6 providers, 1 taskserv, 2 clusters) ✅
- Syntax validation: 15 core files ✅
- Pre-commit hooks: all passing ✅
2026-01-08 20:08:46 +00:00
|
|
|
├── nickel/ # Nickel schemas
|
|
|
|
|
│ ├── my-extension.ncl
|
|
|
|
|
│ └── nickel.mod
|
2025-10-07 10:32:04 +01:00
|
|
|
├── scripts/ # Installation scripts
|
|
|
|
|
│ ├── install.nu
|
|
|
|
|
│ └── uninstall.nu
|
|
|
|
|
├── templates/ # Config templates
|
|
|
|
|
│ └── config.yaml.j2
|
|
|
|
|
└── docs/ # Documentation
|
|
|
|
|
└── README.md
|
chore: complete KCL to Nickel migration cleanup and setup pre-commit
Clean up 404 KCL references (99.75% complete):
- Rename kcl_* variables to schema_*/nickel_* (kcl_path→schema_path, etc.)
- Update functions: parse_kcl_file→parse_nickel_file
- Update env vars: KCL_MOD_PATH→NICKEL_IMPORT_PATH
- Fix cli/providers-install: add has_nickel and nickel_version variables
- Correct import syntax: .nickel.→.ncl.
- Update 57 files across core, CLI, config, and utilities
Configure pre-commit hooks:
- Activate: nushell-check, nickel-typecheck, markdownlint
- Comment out: Rust hooks (fmt, clippy, test), check-yaml
Testing:
- Module discovery: 9 modules (6 providers, 1 taskserv, 2 clusters) ✅
- Syntax validation: 15 core files ✅
- Pre-commit hooks: all passing ✅
2026-01-08 20:08:46 +00:00
|
|
|
```plaintext
|
2025-10-07 10:32:04 +01:00
|
|
|
|
|
|
|
|
## Troubleshooting
|
|
|
|
|
|
|
|
|
|
### Extension Not Found
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Discover available extensions
|
|
|
|
|
provisioning ext discover
|
|
|
|
|
|
|
|
|
|
# Search by name
|
|
|
|
|
provisioning ext search <name>
|
|
|
|
|
|
|
|
|
|
# Check specific source
|
|
|
|
|
provisioning ext list --source oci
|
chore: complete KCL to Nickel migration cleanup and setup pre-commit
Clean up 404 KCL references (99.75% complete):
- Rename kcl_* variables to schema_*/nickel_* (kcl_path→schema_path, etc.)
- Update functions: parse_kcl_file→parse_nickel_file
- Update env vars: KCL_MOD_PATH→NICKEL_IMPORT_PATH
- Fix cli/providers-install: add has_nickel and nickel_version variables
- Correct import syntax: .nickel.→.ncl.
- Update 57 files across core, CLI, config, and utilities
Configure pre-commit hooks:
- Activate: nushell-check, nickel-typecheck, markdownlint
- Comment out: Rust hooks (fmt, clippy, test), check-yaml
Testing:
- Module discovery: 9 modules (6 providers, 1 taskserv, 2 clusters) ✅
- Syntax validation: 15 core files ✅
- Pre-commit hooks: all passing ✅
2026-01-08 20:08:46 +00:00
|
|
|
```plaintext
|
2025-10-07 10:32:04 +01:00
|
|
|
|
|
|
|
|
### OCI Registry Issues
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Test connection
|
|
|
|
|
provisioning ext test-oci
|
|
|
|
|
|
|
|
|
|
# Check registry is running
|
|
|
|
|
curl http://localhost:5000/v2/
|
|
|
|
|
|
|
|
|
|
# View OCI config
|
|
|
|
|
provisioning env | grep OCI
|
chore: complete KCL to Nickel migration cleanup and setup pre-commit
Clean up 404 KCL references (99.75% complete):
- Rename kcl_* variables to schema_*/nickel_* (kcl_path→schema_path, etc.)
- Update functions: parse_kcl_file→parse_nickel_file
- Update env vars: KCL_MOD_PATH→NICKEL_IMPORT_PATH
- Fix cli/providers-install: add has_nickel and nickel_version variables
- Correct import syntax: .nickel.→.ncl.
- Update 57 files across core, CLI, config, and utilities
Configure pre-commit hooks:
- Activate: nushell-check, nickel-typecheck, markdownlint
- Comment out: Rust hooks (fmt, clippy, test), check-yaml
Testing:
- Module discovery: 9 modules (6 providers, 1 taskserv, 2 clusters) ✅
- Syntax validation: 15 core files ✅
- Pre-commit hooks: all passing ✅
2026-01-08 20:08:46 +00:00
|
|
|
```plaintext
|
2025-10-07 10:32:04 +01:00
|
|
|
|
|
|
|
|
### Cache Problems
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Clear and rebuild
|
|
|
|
|
provisioning ext cache clear --all
|
|
|
|
|
|
|
|
|
|
# Pull fresh copy
|
|
|
|
|
provisioning ext pull <name> --force
|
chore: complete KCL to Nickel migration cleanup and setup pre-commit
Clean up 404 KCL references (99.75% complete):
- Rename kcl_* variables to schema_*/nickel_* (kcl_path→schema_path, etc.)
- Update functions: parse_kcl_file→parse_nickel_file
- Update env vars: KCL_MOD_PATH→NICKEL_IMPORT_PATH
- Fix cli/providers-install: add has_nickel and nickel_version variables
- Correct import syntax: .nickel.→.ncl.
- Update 57 files across core, CLI, config, and utilities
Configure pre-commit hooks:
- Activate: nushell-check, nickel-typecheck, markdownlint
- Comment out: Rust hooks (fmt, clippy, test), check-yaml
Testing:
- Module discovery: 9 modules (6 providers, 1 taskserv, 2 clusters) ✅
- Syntax validation: 15 core files ✅
- Pre-commit hooks: all passing ✅
2026-01-08 20:08:46 +00:00
|
|
|
```plaintext
|
2025-10-07 10:32:04 +01:00
|
|
|
|
|
|
|
|
## Next Steps
|
|
|
|
|
|
|
|
|
|
- Read full documentation: `README.md`
|
|
|
|
|
- Explore test suite: `tests/run_all_tests.nu`
|
|
|
|
|
- Check implementation summary: `EXTENSION_LOADER_IMPLEMENTATION_SUMMARY.md`
|
|
|
|
|
|
|
|
|
|
## Help
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Extension commands help
|
|
|
|
|
provisioning ext --help
|
|
|
|
|
|
|
|
|
|
# Cache commands help
|
|
|
|
|
provisioning ext cache --help
|
|
|
|
|
|
|
|
|
|
# Publish help
|
|
|
|
|
nu provisioning/tools/publish_extension.nu --help
|
chore: complete KCL to Nickel migration cleanup and setup pre-commit
Clean up 404 KCL references (99.75% complete):
- Rename kcl_* variables to schema_*/nickel_* (kcl_path→schema_path, etc.)
- Update functions: parse_kcl_file→parse_nickel_file
- Update env vars: KCL_MOD_PATH→NICKEL_IMPORT_PATH
- Fix cli/providers-install: add has_nickel and nickel_version variables
- Correct import syntax: .nickel.→.ncl.
- Update 57 files across core, CLI, config, and utilities
Configure pre-commit hooks:
- Activate: nushell-check, nickel-typecheck, markdownlint
- Comment out: Rust hooks (fmt, clippy, test), check-yaml
Testing:
- Module discovery: 9 modules (6 providers, 1 taskserv, 2 clusters) ✅
- Syntax validation: 15 core files ✅
- Pre-commit hooks: all passing ✅
2026-01-08 20:08:46 +00:00
|
|
|
```plaintext
|