UNPKG

aws-cdk

Version:

AWS CDK CLI, the command line tool for CDK apps

18 lines (17 loc) 715 B
import type { StackDetails } from '@aws-cdk/toolkit-lib'; /** * Render the output of `cdk list` for a set of stacks, honoring the output flags. * * - `--long --show-dependencies`: the full stack details, serialized. * - `--show-dependencies`: each stack's id and its dependencies, serialized. * - `--long`: each stack's id, name and environment, serialized. * - otherwise: the stack ids, one per line. * * `--json` selects JSON over YAML for the serialized variants (it has no effect * on the plain id listing, matching the historical CLI behavior). */ export declare function formatStackList(stacks: StackDetails[], options?: { long?: boolean; json?: boolean; showDeps?: boolean; }): string;