你可以更改使用mgconsole时的SHOW CONFIG输出格式吗?

huangapple go评论59阅读模式
英文:

Can I change the output format for SHOW CONFIG when using mgconsole?

问题

mgconsole(版本1.3)中,当我运行SHOW CONFIG;查询时,输出很难阅读。

Memgraph Lab 正在本地运行: 3000

mgconsole 1.3
已连接到 'memgraph://127.0.0.1:7687'
键入 :help 以获取 shell 使用说明
通过键入 Ctrl-D(eof) 或 :quit 退出 shell
memgraph> SHOW CONFIG;
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 名称 | 默认值 | 当前值 | 描述 |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| "flag_file" | "" | "/etc/memgraph/memgr`

英文:

In mgconsole (version 1.3) when I run SHOW CONFIG; query the output is hard to read.

`Memgraph Lab is running at localhost:3000

mgconsole 1.3
Connected to 'memgraph://127.0.0.1:7687'
Type :help for shell usage
Quit the shell by typing Ctrl-D(eof) or :quit
memgraph> SHOW CONFIG;
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| name | default_value
| current_value
| description
|
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| "flag_file" | ""
| "/etc/memgraph/memgr`

你可以更改使用mgconsole时的SHOW CONFIG输出格式吗?

Can the output format be changed?

答案1

得分: 1

在Memgraph中有一个名为“-fit_to_screen”的标志。您需要在启动mgconsole之前使用它。您可以将此参数添加到您的docker run命令中。

docker run -e MGCONSOLE="-fit_to_screen" -it -p 7687:7687 -p 7444:7444 -p 3000:3000 memgraph/memgraph-platform

这将导致输出适应您的窗口大小,如下所示:

你可以更改使用mgconsole时的SHOW CONFIG输出格式吗?

英文:

There is a flag in Memgraph called -fit_to_screen. You need to use it before staring mgconsole. You can add this parameter to your docker run command.

docker run -e MGCONSOLE="-fit_to_screen" -it -p 7687:7687 -p 7444:7444 -p 3000:3000 memgraph/memgraph-platform

It will result in output that will fit to your window size. Like this

你可以更改使用mgconsole时的SHOW CONFIG输出格式吗?

huangapple
  • 本文由 发表于 2023年5月24日 20:22:54
  • 转载请务必保留本文链接:https://go.coder-hub.com/76323497.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定