From 4e29ee8565cd5e5c9b1a844e7b91ff9607f77d76 Mon Sep 17 00:00:00 2001 From: Shumail Mohyuddin Date: Fri, 6 Oct 2023 18:13:39 +0200 Subject: [PATCH] fix: allow listing disabled actions in get actions cmd --- core/src/actions/base.ts | 4 ++-- core/src/commands/get/get-actions.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/actions/base.ts b/core/src/actions/base.ts index eba3c628d6..a54a437fee 100644 --- a/core/src/actions/base.ts +++ b/core/src/actions/base.ts @@ -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) { diff --git a/core/src/commands/get/get-actions.ts b/core/src/commands/get/get-actions.ts index 7f7e91ee1d..5c81cd3e91 100644 --- a/core/src/commands/get/get-actions.ts +++ b/core/src/commands/get/get-actions.ts @@ -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