From 8543f304b5ae42b86a1081777c45959db46338df Mon Sep 17 00:00:00 2001 From: Anton Date: Tue, 29 Oct 2024 19:38:16 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=B4=D0=BE=D0=BA=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/en/md/Start/CLI_version.md | 2 +- docs/ru/md/Start/CLI_version.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/md/Start/CLI_version.md b/docs/en/md/Start/CLI_version.md index d628b743d2..7e346f7b4b 100644 --- a/docs/en/md/Start/CLI_version.md +++ b/docs/en/md/Start/CLI_version.md @@ -33,7 +33,7 @@ When it comes to parameters, most often the data passed there are strings. This + Dates are passed as strings in ISO 8601 format + Arrays are passed as strings in the form`"['Val1','Val2','Val3']"` - + JSON is passed as a path to a .json file + + JSON is passed as a path to a .json file or a string in JSON format with single quotes After executing the requested action, the program outputs the result and exits. By default, the output is displayed in the console, but you can redirect it to a file using either the standard method `>` or by using the common parameter `--out`. The difference between these two methods lies in the encoding of the saved file: when using `>`, it will be the encoding of the shell, whereas when using `--out`, it will be UTF-8 (used internally by OInt). Additionally, using `--out` is mandatory for methods returning binary data in the response (such as downloading a file from Google Drive, for example) diff --git a/docs/ru/md/Start/CLI_version.md b/docs/ru/md/Start/CLI_version.md index bca9133999..ab1e5b6e89 100644 --- a/docs/ru/md/Start/CLI_version.md +++ b/docs/ru/md/Start/CLI_version.md @@ -33,7 +33,7 @@ sidebar_position: 2 + Даты - передаются как строки формата ISO 8601 + Массивы - передаются как строки вида `"['Знач1','Знач2','Знач3']"` - + JSON - передается как путь к файлу + + JSON - передается как путь к файлу или строка в JSON формате с одинарными кавычками После выполнения запрашиваемого действия, программа выводит результат и завершает работу. По умолчанию, вывод осуществляется в консоль, но вы можете перенаправить его в файл - как стандартным способом `>`, так и при помощи общего параметра `--out`. Разница между двумя этими способами заключается в кодировке сохраняемого файла: при использовании `>` это будет кодировка оболочки, а при использованни `--out` - UTF-8 (используется внутри OInt при работе). Также использование `--out` обязательно для методов, возвращающих двоичные данные в ответе (вроде скачивания файла из Google Drive, например)