You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/docker/helpers/containers.ts

10 lines
241 B

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