UNPKG

@yuntools/ali-oss

Version:

阿里云 OSS 命令行工具 ossutil 封装,支持 ESM,CJS 导入,提供 TypeScript 类型定义

20 lines 764 B
import assert from 'node:assert'; import { commonProcessInputMap } from '../helper.js'; import { PlaceholderKey, } from '../types.js'; import { initBaseOptions } from './common.js'; export const initOptions = { ...initBaseOptions, }; export async function processInput(input, globalConfig) { const map = commonProcessInputMap(input, initOptions, globalConfig); map.delete(PlaceholderKey.dest); map.delete(PlaceholderKey.src); map.delete(PlaceholderKey.encodeSource); map.delete(PlaceholderKey.encodeTarget); const bucketName = map.get(PlaceholderKey.bucket); assert(bucketName, 'bucket is required'); map.set(PlaceholderKey.bucketName, bucketName); map.set('upload', true); return map; } //# sourceMappingURL=prob.js.map