mirror of https://github.com/portainer/portainer
10 lines
241 B
TypeScript
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(' ');
|
||
|
}
|