Skip to content

Commit

Permalink
fix: allow listing disabled actions in get actions cmd (#5203)
Browse files Browse the repository at this point in the history
  • Loading branch information
shumailxyz committed Oct 7, 2023
1 parent 5f7f533 commit eb316b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/src/actions/base.ts
Expand Up @@ -481,8 +481,8 @@ export abstract class BaseAction<
return this.dependencies
}

getDependencies(): Action[] {
return this.dependencies.map((d) => this.graph.getActionByRef(d))
getDependencies(opts?: GetActionOpts): Action[] {
return this.dependencies.map((d) => this.graph.getActionByRef(d, opts))
}

hasDependency(refOrString: string | ActionReference) {
Expand Down
2 changes: 1 addition & 1 deletion core/src/commands/get/get-actions.ts
Expand Up @@ -198,7 +198,7 @@ export class GetActionsCommand extends Command {
...tmp,
path: getRelativeActionConfigPath(garden.projectRoot, a),
dependencies: a
.getDependencies()
.getDependencies({ includeDisabled: true })
.map((d) => d.key())
.sort(),
dependents: graph
Expand Down

0 comments on commit eb316b1

Please sign in to comment.