Describe the bug
Multiple job-related CLI commands fail to load because they reference the wrong path for the base component. The error is: invalid component definition, can't find component [../../base]
This affects the following commands:
wheels jobs monitor
wheels jobs purge
wheels jobs retry
wheels jobs status
wheels jobs work
To Reproduce
- Install Wheels CLI:
box install wheels-cli or simply link latest CLI from develop branch to commandBox
- Run
box reload or start CommandBox
- Observe the error during module loading
Expected behavior
The CLI module should load successfully without errors, and all jobs commands should be available.
Desktop:
- OS: macOS
- Wheels Branch: Develop
Additional context
Affected Files:
cli/src/commands/wheels/jobs/monitor.cfc:11
cli/src/commands/wheels/jobs/purge.cfc:11
cli/src/commands/wheels/jobs/retry.cfc:10
cli/src/commands/wheels/jobs/status.cfc:10
cli/src/commands/wheels/jobs/work.cfc:14
Problematic Code (in all files):
component extends="../../base" {
Root Cause: The jobs/ directory is directly under wheels/. The path ../../base goes two levels up to commands/ but base.cfc is located in wheels/ (only one level up).
Suggested Fix: Change extends="../../base" to extends="../base" in all five files.
Directory Structure:
commands/wheels/
├── base.cfc <-- base.cfc is here
├── assets/
│ └── init.cfc (extends "../base" - CORRECT)
└── jobs/
├── monitor.cfc (extends "../../base" - WRONG)
└── ...
Describe the bug
Multiple job-related CLI commands fail to load because they reference the wrong path for the base component. The error is:
invalid component definition, can't find component [../../base]This affects the following commands:
wheels jobs monitorwheels jobs purgewheels jobs retrywheels jobs statuswheels jobs workTo Reproduce
box install wheels-clior simply link latest CLI fromdevelopbranch tocommandBoxbox reloador start CommandBoxExpected behavior
The CLI module should load successfully without errors, and all jobs commands should be available.
Desktop:
Additional context
Affected Files:
cli/src/commands/wheels/jobs/monitor.cfc:11cli/src/commands/wheels/jobs/purge.cfc:11cli/src/commands/wheels/jobs/retry.cfc:10cli/src/commands/wheels/jobs/status.cfc:10cli/src/commands/wheels/jobs/work.cfc:14Problematic Code (in all files):
component extends="../../base" {Root Cause: The
jobs/directory is directly underwheels/. The path../../basegoes two levels up tocommands/butbase.cfcis located inwheels/(only one level up).Suggested Fix: Change
extends="../../base"toextends="../base"in all five files.Directory Structure: