mirror of
https://github.com/portainer/portainer.git
synced 2025-07-31 03:09:44 +02:00
refactor(docker/containers): migrate commands tab to react [EE-5208] (#10085)
This commit is contained in:
parent
46e73ee524
commit
f7366d9788
42 changed files with 1783 additions and 951 deletions
9
app/docker/helpers/containers.ts
Normal file
9
app/docker/helpers/containers.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import { splitargs } from './splitargs';
|
||||
|
||||
export function commandStringToArray(command: string) {
|
||||
return splitargs(command);
|
||||
}
|
||||
|
||||
export function commandArrayToString(array: string[]) {
|
||||
return array.map((elem) => `'${elem}'`).join(' ');
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue