From b76e4c808c954dcf498b510aaa9c8d6c91850991 Mon Sep 17 00:00:00 2001 From: erkin Date: Mon, 20 Nov 2023 08:01:59 +0300 Subject: op-mode: T4038: Python rewrite of image tools --- op-mode-definitions/file.xml.in | 86 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 op-mode-definitions/file.xml.in (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/file.xml.in b/op-mode-definitions/file.xml.in new file mode 100644 index 000000000..549b9ad92 --- /dev/null +++ b/op-mode-definitions/file.xml.in @@ -0,0 +1,86 @@ + + + + + + + Show the contents of a file, a directory or an image + + + sudo ${vyos_op_scripts_dir}/file.py --show $3 + + + + + + Copy an object + + + + + Copy a file or a directory + + + + + + Destination path + + + sudo ${vyos_op_scripts_dir}/file.py --copy $3 $5 + + + + + + + + + Delete an object + + + + + Delete a local file, possibly from an image + + + sudo ${vyos_op_scripts_dir}/file.py --delete $3 + + + + + + Clone an object + + + + + Clone a system object + + + + + Clone the current system configuration to an image + + + + + sudo ${vyos_op_scripts_dir}/file.py --clone $4 + + + + Clone system configuration from an image to another one + + running + + + + sudo ${vyos_op_scripts_dir}/file.py --clone-from $6 $4 + + + + + + + + -- cgit v1.2.3