Browsing Chinese (Simplified) translation

76 of 815 results
76.

The set command changes the provided configuration options as requested.

$ snapctl set username=frank password=$PASSWORD

All configuration changes are persisted at once, and only after the hook
returns successfully.

Nested values may be modified via a dotted path:

$ snapctl set author.name=frank

Configuration option may be unset with exclamation mark:
$ snapctl set author!

Plug and slot attributes may be set in the respective prepare and connect hooks by
naming the respective plug or slot:

$ snapctl set :myplug path=/dev/ttyS0
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.
There are leading/trailing spaces here. Each one represents a space character. Enter a space in the equivalent position in the translation.

set 命令可以修改提供的配置选项,例如:

$ snapctl set username=frank password=$PASSWORD

所有的配置更改将在钩子返回成功后一次性持久化。

通过点路径可以修改嵌套值:

$ snapctl set author.name=frank

使用感叹号可以取消配置选项:

$ snapctl set author!

插槽和插头属性可以通过命名相应的插槽或插头来在准备和连接钩子中设置:

$ snapctl set :myplug path=/dev/ttyS0
Translated by Luke Na
Located in overlord/hookstate/ctlcmd/set.go:44
76 of 815 results

This translation is managed by Ubuntu Simplified Chinese Translators, assigned by Ubuntu Translators.

You are not logged in. Please log in to work on translations.