UNPKG

clever-tools

Version:

Command Line Interface for Clever Cloud.

8 lines (6 loc) 292 B
import { getAllDeployments } from '@clevercloud/client/esm/api/v2/application.js'; import { sendToApi } from './send-to-api.js'; export function list(ownerId, appId, showAll) { const limit = showAll ? null : 10; return getAllDeployments({ id: ownerId, appId, limit }).then(sendToApi); }