portainer/app/docker/helpers/containers.ts

10 lines
241 B
TypeScript

import { splitargs } from './splitargs';
export function commandStringToArray(command: string) {
return splitargs(command);
}
export function commandArrayToString(array: string[]) {
return array.map((elem) => `'${elem}'`).join(' ');
}