/*! * Copyright (c) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project. */ import type { Command } from 'commander' import type { ZipCommandOptions } from '../steps/zip/index.mjs' import { zip } from '../steps/zip/index.mjs' export default function zipCommand(program: Command): void { program .command('zip ') .option( '--baseDir >', 'Specify input paths base directory (default=.)', process.cwd(), ) .action( async ( destination: string, sources: string[], { baseDir }: ZipCommandOptions, ) => { await zip(destination, sources, { baseDir }) }, ) }